fix bloom chain mip offset

This commit is contained in:
jacob 2026-03-13 08:47:53 -05:00
parent 8e0167125f
commit 0b808bffea
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ Struct(G_IndexBufferDesc)
//~ Resource dereference //~ Resource dereference
#if IsGpu #if IsGpu
// TODO: Add explicit uniform dereference functions, since on AMD hardware // TODO: Add explicit uniform-dereference variations, since on AMD hardware
// non-uniform is slower and there are some shader-compilation issues in older // non-uniform is slower and there are some shader-compilation issues in older
// driver versions // driver versions

View File

@ -1111,7 +1111,7 @@ ComputeShader(V_BloomDownCS)
Texture2D<Vec4> bloom_up = ( Texture2D<Vec4> bloom_up = (
is_first_pass ? is_first_pass ?
G_Deref(frame.screen, Texture2D<Vec4>) : G_Deref(frame.screen, Texture2D<Vec4>) :
G_Deref(frame.bloom_chain, Texture2D<Vec4>, mip_idx - 1) G_Deref(frame.bloom_chain, Texture2D<Vec4>, mip_idx - 2)
); );
Vec2 down_dims = G_Count2D(bloom_down); Vec2 down_dims = G_Count2D(bloom_down);