remove miss-leading span type in VkDescriptorSetLayoutBinding

This commit is contained in:
2026-07-09 14:12:42 +02:00
parent 03dd84463a
commit e2b99d7045
2 changed files with 4 additions and 7 deletions
+1
View File
@@ -1121,6 +1121,7 @@ class RegistryParser : XmlParser
}
}
if (type_name != "VkDescriptorSetLayoutBinding")
{
Dictionary<StringView, (int lens, Field field, Field lenField)> dict = scope .((.)fields.Count);
for (let field in fields)
+3 -7
View File
@@ -6972,18 +6972,14 @@ struct VkDescriptorSetLayout : uint64
public uint32 descriptorCount = 0; // Number of descriptors in this binding
public VkShaderStageFlags stageFlags = default; // Shader stages this binding is visible to
public VkSampler* pImmutableSamplers = null; // Immutable samplers (used if descriptor type is SAMPLER or COMBINED_IMAGE_SAMPLER, is either NULL or contains count number of elements)
public Span<VkSampler> immutableSamplers
{
get { return .(pImmutableSamplers, (.)descriptorCount); }
set mut { pImmutableSamplers = value.Ptr; descriptorCount = (.)value.Length; }
}
public this(uint32 binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, Span<VkSampler> immutableSamplers = default) : this()
public this(uint32 binding, VkDescriptorType descriptorType, uint32 descriptorCount, VkShaderStageFlags stageFlags, VkSampler* pImmutableSamplers = null) : this()
{
this.binding = binding;
this.descriptorType = descriptorType;
this.descriptorCount = descriptorCount;
this.stageFlags = stageFlags;
this.immutableSamplers = immutableSamplers;
this.pImmutableSamplers = pImmutableSamplers;
}
}