From 11784f9c8f4e75ff4deb7a9c8e3353df85e1d5f3 Mon Sep 17 00:00:00 2001 From: "David G. Yu" Date: Mon, 21 Sep 2015 08:22:37 -0700 Subject: [PATCH] Fixed GLSL Compute Kernel buffer layout For improved portability, we need to declare std430 buffer layout for buffer resources used by the GLSL Compute Kernel. --- opensubdiv/osd/glslComputeKernel.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/opensubdiv/osd/glslComputeKernel.glsl b/opensubdiv/osd/glslComputeKernel.glsl index 1ee45761..451d46d3 100644 --- a/opensubdiv/osd/glslComputeKernel.glsl +++ b/opensubdiv/osd/glslComputeKernel.glsl @@ -26,6 +26,7 @@ layout(local_size_x=WORK_GROUP_SIZE, local_size_y=1, local_size_z=1) in; +layout(std430) buffer; // source and destination buffers