From 249f6c9fa384e9e3265cafb1357e502ea7db72f7 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Tue, 20 Sep 2022 22:02:58 -0400 Subject: texture loading --- engine/xe_descriptors.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/xe_descriptors.cpp') diff --git a/engine/xe_descriptors.cpp b/engine/xe_descriptors.cpp index ef6dc2c..f1f4436 100644 --- a/engine/xe_descriptors.cpp +++ b/engine/xe_descriptors.cpp @@ -9,13 +9,15 @@ XeDescriptorSetLayout::Builder &XeDescriptorSetLayout::Builder::addBinding( uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, - uint32_t count) { + VkSampler *sampler) { assert(bindings.count(binding) == 0 && "Binding already in use"); + uint32_t count = 1; VkDescriptorSetLayoutBinding layoutBinding{}; layoutBinding.binding = binding; layoutBinding.descriptorType = descriptorType; layoutBinding.descriptorCount = count; layoutBinding.stageFlags = stageFlags; + layoutBinding.pImmutableSamplers = sampler; bindings[binding] = layoutBinding; return *this; } -- cgit v1.2.3-freya