Browse Source

ShaderWrite -> UsageStorage

Heedong Arkiny Lee 5 years ago
parent
commit
00cb9675f5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Samples/ComputeShader/ComputeShader.cpp

+ 1
- 1
Samples/ComputeShader/ComputeShader.cpp View File

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