Sfoglia il codice sorgente

Acceleration structures should be classified as raw srv buffers, not typed srv buffers (#2425)

* acceleration structures should be classified as raw buffers
amarpMSFT 6 anni fa
parent
commit
05d1ad532a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/DxilContainer/DxilContainerAssembler.cpp

+ 1 - 1
lib/DxilContainer/DxilContainerAssembler.cpp

@@ -698,7 +698,7 @@ public:
       DXASSERT_NOMSG(pBindInfo);
       DXASSERT_NOMSG(pBindInfo);
       if (R->IsStructuredBuffer()) {
       if (R->IsStructuredBuffer()) {
         pBindInfo->ResType = (UINT)PSVResourceType::SRVStructured;
         pBindInfo->ResType = (UINT)PSVResourceType::SRVStructured;
-      } else if (R->IsRawBuffer()) {
+      } else if (R->IsRawBuffer() || (R->GetKind() == DxilResourceBase::Kind::RTAccelerationStructure)) {
         pBindInfo->ResType = (UINT)PSVResourceType::SRVRaw;
         pBindInfo->ResType = (UINT)PSVResourceType::SRVRaw;
       } else {
       } else {
         pBindInfo->ResType = (UINT)PSVResourceType::SRVTyped;
         pBindInfo->ResType = (UINT)PSVResourceType::SRVTyped;