summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-renderer-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/shader-renderer-util.cpp')
-rw-r--r--tools/render-test/shader-renderer-util.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/render-test/shader-renderer-util.cpp b/tools/render-test/shader-renderer-util.cpp
index ede744445..d6441d3ac 100644
--- a/tools/render-test/shader-renderer-util.cpp
+++ b/tools/render-test/shader-renderer-util.cpp
@@ -93,7 +93,6 @@ using Slang::Result;
/* static */ Result ShaderRendererUtil::createBufferResource(
const InputBufferDesc& inputDesc,
- bool isOutput,
size_t bufferSize,
const void* initData,
IDevice* device,
@@ -106,24 +105,12 @@ using Slang::Result;
srcDesc.format = inputDesc.format;
int bindFlags = 0;
- if (inputDesc.type == InputBufferType::ConstantBuffer)
- {
- bindFlags |= IResource::BindFlag::ConstantBuffer;
- srcDesc.cpuAccessFlags |= IResource::AccessFlag::Write;
- initialUsage = IResource::Usage::ConstantBuffer;
- }
- else
{
bindFlags |= IResource::BindFlag::UnorderedAccess | IResource::BindFlag::PixelShaderResource | IResource::BindFlag::NonPixelShaderResource;
srcDesc.elementSize = inputDesc.stride;
initialUsage = IResource::Usage::UnorderedAccess;
}
- if (isOutput)
- {
- srcDesc.cpuAccessFlags |= IResource::AccessFlag::Read;
- }
-
srcDesc.bindFlags = bindFlags;
ComPtr<IBufferResource> bufferResource =