|
|
|
|
228
|
texDesc.mipmapLevels = 1;
|
228
|
texDesc.mipmapLevels = 1;
|
229
|
texDesc.sampleCount = 1;
|
229
|
texDesc.sampleCount = 1;
|
230
|
texDesc.arrayLength = 1;
|
230
|
texDesc.arrayLength = 1;
|
231
|
- texDesc.usage = DKTexture::UsageCopyDestination | DKTexture::UsageSampled;
|
|
|
|
|
231
|
+ texDesc.usage = DKTexture::UsageStorage | DKTexture::UsageShaderRead | DKTexture::UsageCopyDestination | DKTexture::UsageSampled;
|
232
|
DKObject<DKTexture> tex = device->CreateTexture(texDesc);
|
232
|
DKObject<DKTexture> tex = device->CreateTexture(texDesc);
|
233
|
if (tex)
|
233
|
if (tex)
|
234
|
{
|
234
|
{
|