From 44c0a56974b664e50b2cb8cb6f10740b19c4e02f Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 3 Dec 2020 08:23:05 -0800 Subject: Add shader object parameter binding to renderer_test. (#1622) * Add shader object parameter binding to renderer_test. * remove multiple-definitions.hlsl * Fix cuda implementation. Co-authored-by: Tim Foley --- tools/gfx/render.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tools/gfx/render.h') 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() {} -- cgit v1.2.3