Skip to content
Snippets Groups Projects
Commit 871580dc authored by bunnei's avatar bunnei
Browse files

gl_rasterizer_cache: Implement LoadGLBuffer for Texture2DArray.

parent a9aa1db5
No related branches found
No related tags found
No related merge requests found
......@@ -679,6 +679,14 @@ void CachedSurface::LoadGLBuffer() {
case SurfaceParams::SurfaceTarget::Texture2D:
// Pass impl. to the fallback code below
break;
case SurfaceParams::SurfaceTarget::Texture2DArray:
for (std::size_t index = 0; index < params.depth; ++index) {
const std::size_t offset{index * copy_size};
morton_to_gl_fns[static_cast<std::size_t>(params.pixel_format)](
params.width, params.block_height, params.height, gl_buffer.data() + offset,
copy_size, params.addr + offset);
}
break;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented tiled load for target={}",
static_cast<u32>(params.target));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment