|
20 | 20 | #include "dxc/DXIL/DxilSignature.h" |
21 | 21 | #include "dxc/DXIL/DxilSubobject.h" |
22 | 22 | #include "dxc/DXIL/DxilTypeSystem.h" |
| 23 | +#include "dxc/DXIL/DxilConstants.h" |
23 | 24 |
|
24 | 25 | #include <memory> |
25 | 26 | #include <string> |
@@ -287,8 +288,9 @@ class DxilModule { |
287 | 288 | // Intermediate options that do not make it to DXIL |
288 | 289 | void SetLegacyResourceReservation(bool legacyResourceReservation); |
289 | 290 | bool GetLegacyResourceReservation() const; |
290 | | - void SetConsistentBindings(bool consistentBindings); |
291 | | - bool GetConsistentBindings() const; |
| 291 | + |
| 292 | + void SetUnusedResourceBinding(UnusedResourceBinding unusedResourceBinding); |
| 293 | + UnusedResourceBinding GetUnusedResourceBinding() const; |
292 | 294 | void ClearIntermediateOptions(); |
293 | 295 |
|
294 | 296 | // Hull and Domain shaders. |
@@ -347,8 +349,7 @@ class DxilModule { |
347 | 349 | unsigned m_ActiveStreamMask = 0; |
348 | 350 |
|
349 | 351 | enum IntermediateFlags : uint32_t { |
350 | | - LegacyResourceReservation = 1 << 0, |
351 | | - ConsistentBindings = 1 << 1 |
| 352 | + LegacyResourceReservation = 1 << 0 |
352 | 353 | }; |
353 | 354 |
|
354 | 355 | llvm::LLVMContext &m_Ctx; |
@@ -386,6 +387,7 @@ class DxilModule { |
386 | 387 | bool m_bUseMinPrecision = true; // use min precision by default; |
387 | 388 | bool m_bAllResourcesBound = false; |
388 | 389 | bool m_bResMayAlias = false; |
| 390 | + UnusedResourceBinding m_unusedResourceBinding = UnusedResourceBinding::Strip; |
389 | 391 |
|
390 | 392 | // properties from HLModule that should not make it to the final DXIL |
391 | 393 | uint32_t m_IntermediateFlags = 0; |
|
0 commit comments