379 __host__ __device__
inline size_t toFlatIndex(
const int2 &full_resolution)
const {
380 return static_cast<size_t>(
y) * full_resolution.x +
x;
385 return static_cast<size_t>(
y) * full_resolution.
x +
x;
402 __device__
static PixelCoordinate fromTiledLaunch(
const optix::uint3 &launch_idx,
const optix::int2 &tile_offset,
const optix::int2 &full_resolution) {
403 (void) full_resolution;
405 tile_offset.y + launch_idx.z
419 __device__
static size_t computeFlatIndex(
const optix::uint3 &launch_idx,
const optix::int2 &tile_offset,
const optix::int2 &full_resolution) {
420 PixelCoordinate pixel = fromTiledLaunch(launch_idx, tile_offset, full_resolution);