From: Joshua Simmons Date: Sat, 1 Jun 2024 19:10:55 +0000 (+0200) Subject: shark: Remove hack to bypass cache for prim instances X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=a1d553bf4aaad18a82b25fd1272eaddba803bb48;p=josh%2Fnarcissus shark: Remove hack to bypass cache for prim instances --- diff --git a/title/shark-shaders/shaders/primitive_2d_bin.comp.glsl b/title/shark-shaders/shaders/primitive_2d_bin.comp.glsl index 277d272..6ac6edc 100644 --- a/title/shark-shaders/shaders/primitive_2d_bin.comp.glsl +++ b/title/shark-shaders/shaders/primitive_2d_bin.comp.glsl @@ -10,10 +10,6 @@ #include "primitive_2d.h" -layout(std430, set = 0, binding = 3) readonly coherent buffer glyphInstanceBufferCoherent { - GlyphInstance glyph_instances_coherent[]; -}; - #define SUBGROUP_SIZE 64 #define NUM_PRIMS_WG (SUBGROUP_SIZE * 32) @@ -31,7 +27,7 @@ void main() { const uint prim_index = gl_WorkGroupID.x * NUM_PRIMS_WG + i + gl_SubgroupInvocationID; bool intersects = false; if (prim_index < primitive_uniforms.num_primitives) { - const GlyphInstance gi = glyph_instances_coherent[prim_index]; + const GlyphInstance gi = glyph_instances[prim_index]; const Glyph gl = glyphs[gi.index]; const vec2 glyph_min = gi.position + gl.offset_min; const vec2 glyph_max = gi.position + gl.offset_max;