File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,13 @@ to specify how shader stages access specific GPU resources.
507
507
508
508
.. code-block :: cpp
509
509
510
+ enum RootDescriptorFlags {
511
+ None = 0,
512
+ DataVolatile = 0x2,
513
+ DataStaticWhileSetAtExecute = 0x4,
514
+ DataStatic = 0x8,
515
+ }
516
+
510
517
// Version 1.0 Root Descriptor
511
518
struct RootDescriptor_V1_0 {
512
519
uint32_t ShaderRegister;
@@ -516,15 +523,7 @@ to specify how shader stages access specific GPU resources.
516
523
// Version 1.1 Root Descriptor
517
524
struct RootDescriptor_V1_1 {
518
525
uint32_t ShaderRegister;
519
- uint32_t RegisterSpace;
520
- // New flags for Version 1.1
521
- enum Flags {
522
- None = 0x0,
523
- DATA_STATIC = 0x1,
524
- DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x2,
525
- DATA_VOLATILE = 0x4
526
- };
527
-
526
+ uint32_t RegisterSpace;
528
527
// Bitfield of flags from the Flags enum
529
528
uint32_t Flags;
530
529
};
You can’t perform that action at this time.
0 commit comments