remove miss-leading span type in VkDescriptorSetLayoutBinding
This commit is contained in:
@@ -1121,6 +1121,7 @@ class RegistryParser : XmlParser
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type_name != "VkDescriptorSetLayoutBinding")
|
||||||
{
|
{
|
||||||
Dictionary<StringView, (int lens, Field field, Field lenField)> dict = scope .((.)fields.Count);
|
Dictionary<StringView, (int lens, Field field, Field lenField)> dict = scope .((.)fields.Count);
|
||||||
for (let field in fields)
|
for (let field in fields)
|
||||||
|
|||||||
+3
-7
@@ -6972,18 +6972,14 @@ struct VkDescriptorSetLayout : uint64
|
|||||||
public uint32 descriptorCount = 0; // Number of descriptors in this binding
|
public uint32 descriptorCount = 0; // Number of descriptors in this binding
|
||||||
public VkShaderStageFlags stageFlags = default; // Shader stages this binding is visible to
|
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 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.binding = binding;
|
||||||
this.descriptorType = descriptorType;
|
this.descriptorType = descriptorType;
|
||||||
|
this.descriptorCount = descriptorCount;
|
||||||
this.stageFlags = stageFlags;
|
this.stageFlags = stageFlags;
|
||||||
this.immutableSamplers = immutableSamplers;
|
this.pImmutableSamplers = pImmutableSamplers;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user