File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -414,13 +414,21 @@ namespace IGC
414
414
int DerivedConstantsOffset = -1 ;
415
415
};
416
416
417
-
418
417
struct SResInfoFoldingOutput
419
418
{
420
419
uint32_t textureID;
421
420
bool value[4 ];
422
421
};
423
422
423
+ struct CustomResourceOutput
424
+ {
425
+ unsigned regIndex;
426
+ unsigned regSpace;
427
+ int rangeSize;
428
+ DXResourceClass resType;
429
+ DXResourceKind resShape;
430
+ };
431
+
424
432
enum SIMDInfoBit
425
433
{
426
434
SIMD_SELECTED, // 0: if the SIMD is selected. If 1, all the other bits are ignored.
@@ -471,6 +479,7 @@ namespace IGC
471
479
472
480
bool hasEvalSampler = false ;
473
481
std::vector<SResInfoFoldingOutput> m_ResInfoFoldingOutput;
482
+
474
483
// GenUpdateCB outputs
475
484
void * m_ConstantBufferReplaceShaderPatterns = nullptr ;
476
485
uint m_ConstantBufferReplaceShaderPatternsSize = 0 ;
Original file line number Diff line number Diff line change @@ -336,6 +336,40 @@ namespace IGC
336
336
337
337
NUM_ARG_SPACE_RESERVATION_SLOTS
338
338
};
339
+
340
+ // copied from DXILConstants.h
341
+ enum class DXResourceClass {
342
+ SRV = 0 ,
343
+ UAV,
344
+ CBuffer,
345
+ Sampler,
346
+ Invalid
347
+ };
348
+
349
+ // copied from DXILConstants.h
350
+ enum class DXResourceKind : unsigned {
351
+ Invalid = 0 ,
352
+ Texture1D,
353
+ Texture2D,
354
+ Texture2DMS,
355
+ Texture3D,
356
+ TextureCube,
357
+ Texture1DArray,
358
+ Texture2DArray,
359
+ Texture2DMSArray,
360
+ TextureCubeArray,
361
+ TypedBuffer,
362
+ RawBuffer,
363
+ StructuredBuffer,
364
+ CBuffer,
365
+ Sampler,
366
+ TBuffer,
367
+ RTAccelerationStructure,
368
+ FeedbackTexture2D,
369
+ FeedbackTexture2DArray,
370
+ NumEntries,
371
+ };
372
+
339
373
}
340
374
341
375
#endif // CODE_GEN_PUBLIC_ENUMS_H_
You can’t perform that action at this time.
0 commit comments