MCPcopy Create free account
hub / github.com/RenderKit/ospray / getTileRegion

Function getTileRegion

modules/cpu/fb/SparseFB.cpp:25–30  ·  view source on GitHub ↗

A global function so we can call it from the tile initialization SYCL kernel

Source from the content-addressed store, hash-verified

23
24// A global function so we can call it from the tile initialization SYCL kernel
25box2i getTileRegion(uint32_t tileID, const vec2i fbSize, const vec2i totalTiles)
26{
27 const vec2i tilePos(tileID % totalTiles.x, tileID / totalTiles.x);
28 return box2i(
29 tilePos * TILE_SIZE, min(tilePos * TILE_SIZE + TILE_SIZE, fbSize));
30}
31
32SparseFrameBuffer::SparseFrameBuffer(api::ISPCDevice &device,
33 const vec2i &_size,

Callers 2

setTilesMethod · 0.85
getTileRegionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected