]> git.nega.tv - josh/narcissus/commitdiff
shark: Remove hack to bypass cache for prim instances
authorJoshua Simmons <josh@nega.tv>
Sat, 1 Jun 2024 19:10:55 +0000 (21:10 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 1 Jun 2024 19:10:55 +0000 (21:10 +0200)
title/shark-shaders/shaders/primitive_2d_bin.comp.glsl

index 277d2727539130cac05c8e532250deb662e7b186..6ac6edc538d264e8815fb2a629d60a3a2fffa001 100644 (file)
 
 #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;