From c8e122dc5c859c72ff98840477adbd263fe914c3 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 17 Nov 2021 15:37:00 +0200 Subject: [PATCH] Only use location-based offsets for the default uniform block The push constant block must follow the layout specified in the shader. --- source/core/uniformblock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/uniformblock.cpp b/source/core/uniformblock.cpp index 25685858..ebaed2a6 100644 --- a/source/core/uniformblock.cpp +++ b/source/core/uniformblock.cpp @@ -23,7 +23,7 @@ void UniformBlock::store(const ReflectData::UniformInfo &info, size_t array_size size_t store_offset; bool packed; - if(info.block->bind_point<0) + if(info.block->bind_point==ReflectData::DEFAULT_BLOCK) { if(info.location<0) return; -- 2.43.0