File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
llvm/include/llvm/Frontend/HLSL Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ struct RootConstants {
93
93
ShaderVisibility Visibility = ShaderVisibility::All;
94
94
};
95
95
96
- using DescriptorType = llvm::dxil::ResourceClass ;
96
+ enum class DescriptorType : uint8_t { SRV = 0 , UAV, CBuffer } ;
97
97
// Models RootDescriptor : CBV | SRV | UAV, by collecting like parameters
98
98
struct RootDescriptor {
99
99
DescriptorType Type;
@@ -103,18 +103,14 @@ struct RootDescriptor {
103
103
RootDescriptorFlags Flags;
104
104
105
105
void setDefaultFlags () {
106
- assert (Type != ParamType::Sampler &&
107
- " Sampler is not a valid type of ParamType" );
108
106
switch (Type) {
109
- case ParamType ::CBuffer:
110
- case ParamType ::SRV:
107
+ case DescriptorType ::CBuffer:
108
+ case DescriptorType ::SRV:
111
109
Flags = RootDescriptorFlags::DataStaticWhileSetAtExecute;
112
110
break ;
113
- case ParamType ::UAV:
111
+ case DescriptorType ::UAV:
114
112
Flags = RootDescriptorFlags::DataVolatile;
115
113
break ;
116
- case ParamType::Sampler:
117
- break ;
118
114
}
119
115
}
120
116
};
You can’t perform that action at this time.
0 commit comments