From 017534601e86df53c0669be7dbc6c565d2108be6 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 25 Oct 2023 07:50:31 -0700 Subject: Use GLSL Scalar layout for vulkan device. (#3285) Co-authored-by: Yong He --- tools/gfx/slang-context.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gfx/slang-context.h b/tools/gfx/slang-context.h index 61dc9baa4..8ae14d4aa 100644 --- a/tools/gfx/slang-context.h +++ b/tools/gfx/slang-context.h @@ -40,6 +40,7 @@ namespace gfx targetDesc.floatingPointMode = desc.floatingPointMode; targetDesc.lineDirectiveMode = desc.lineDirectiveMode; targetDesc.flags = desc.targetFlags; + targetDesc.forceGLSLScalarBufferLayout = true; slangSessionDesc.targets = &targetDesc; slangSessionDesc.targetCount = 1; -- cgit v1.2.3