Explorar el Código

ShaderWrite -> UsageStorage

Heedong Arkiny Lee hace 5 años
padre
commit
00cb9675f5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Samples/ComputeShader/ComputeShader.cpp

+ 1
- 1
Samples/ComputeShader/ComputeShader.cpp Ver fichero

@@ -85,7 +85,7 @@ public:
85 85
             texDesc.mipmapLevels = 1;
86 86
             texDesc.sampleCount = 1;
87 87
             texDesc.arrayLength = 1;
88
-            texDesc.usage = DKTexture::UsageShaderRead | DKTexture::UsageShaderWrite | DKTexture::UsageSampled;
88
+            texDesc.usage = DKTexture::UsageShaderRead | DKTexture::UsageStorage | DKTexture::UsageSampled;
89 89
             textureTarget = device->CreateTexture(texDesc);
90 90
         }
91 91