A global function so we can call it from the tile initialization SYCL kernel
| 23 | |
| 24 | // A global function so we can call it from the tile initialization SYCL kernel |
| 25 | box2i 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 | |
| 32 | SparseFrameBuffer::SparseFrameBuffer(api::ISPCDevice &device, |
| 33 | const vec2i &_size, |
no outgoing calls
no test coverage detected