From 5ceb30fc1b59ff8226c36afe3564bc5f24d74daa Mon Sep 17 00:00:00 2001 From: HyperspaceMadness Date: Wed, 8 Jul 2020 12:06:59 -0400 Subject: [PATCH] Changed SLANG_NUM_BINDINGS to 16 for D3D11 Fix --- gfx/drivers_shader/slang_reflection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_shader/slang_reflection.h b/gfx/drivers_shader/slang_reflection.h index 3f60a38d8e..a814da743f 100644 --- a/gfx/drivers_shader/slang_reflection.h +++ b/gfx/drivers_shader/slang_reflection.h @@ -92,8 +92,8 @@ enum slang_constant_buffer SLANG_CBUFFER_MAX }; -/* Vulkan minimum limit. */ -#define SLANG_NUM_BINDINGS 32 +/* Vulkan maximum texture bindings inside shader. D3D11 has hard limit of 16 */ +#define SLANG_NUM_BINDINGS 16 struct slang_texture_semantic_map {