summaryrefslogtreecommitdiff
path: root/tools/gfx/render.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/render.h')
-rw-r--r--tools/gfx/render.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/gfx/render.h b/tools/gfx/render.h
index 55beb5774..5ad338594 100644
--- a/tools/gfx/render.h
+++ b/tools/gfx/render.h
@@ -520,6 +520,8 @@ enum class DescriptorSlotType
DynamicStorageBuffer,
InputAttachment,
RootConstant,
+ InlineUniformBlock,
+ RayTracingAccelerationStructure,
};
class DescriptorSetLayout : public Slang::RefObject
@@ -530,6 +532,17 @@ public:
DescriptorSlotType type = DescriptorSlotType::Unknown;
UInt count = 1;
+ /// The underlying API-specific binding/register to use for this slot range.
+ ///
+ /// A value of `-1` indicates that the implementation should
+ /// automatically compute the binding/register to use
+ /// based on the preceeding slot range(s).
+ ///
+ /// Some implementations do not have a concept of bindings/regsiters
+ /// for slot ranges, and will ignore this field.
+ ///
+ Int binding = -1;
+
SlotRangeDesc()
{}
@@ -555,6 +568,17 @@ public:
{
DescriptorSetLayout* layout = nullptr;
+ /// The underlying API-specific space/set number to use for this set.
+ ///
+ /// A value of `-1` indicates that the implementation should
+ /// automatically compute the space/set to use basd on
+ /// the preceeding set(s)
+ ///
+ /// Some implementations do not have a concept of space/set numbers
+ /// for descriptor sets, and will ignore this field.
+ ///
+ Int space = -1;
+
DescriptorSetDesc()
{}