summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-12-21 05:05:55 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-12-21 05:05:55 +0000
commit8522b86199fc6fb7238946081acecde986c20957 (patch)
tree5e758284c0239482867cf094c74155c8ee33a4b2 /Graphics/GraphicsEngineVulkan
parentShaderResourceLayoutD3D12: more debug validation plus few more minor improvem... (diff)
downloadDiligentCore-8522b86199fc6fb7238946081acecde986c20957.tar.gz
DiligentCore-8522b86199fc6fb7238946081acecde986c20957.zip
Removed SBTTransitionMode from TraceRaysAttribs
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index a3617e31..45e94a0b 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -3134,7 +3134,7 @@ void DeviceContextVkImpl::TraceRays(const TraceRaysAttribs& Attribs)
if (RayGenShaderRecord.pData || MissShaderTable.pData || HitGroupTable.pData || CallableShaderTable.pData)
{
- TransitionOrVerifyBufferState(*pSBTBufferVk, Attribs.SBTTransitionMode, RESOURCE_STATE_COPY_DEST, VK_ACCESS_TRANSFER_WRITE_BIT, OpName);
+ TransitionOrVerifyBufferState(*pSBTBufferVk, RESOURCE_STATE_TRANSITION_MODE_TRANSITION, RESOURCE_STATE_COPY_DEST, VK_ACCESS_TRANSFER_WRITE_BIT, OpName);
// buffer ranges are not intersected, so we don't need to add barriers between them
if (RayGenShaderRecord.pData)
@@ -3149,7 +3149,7 @@ void DeviceContextVkImpl::TraceRays(const TraceRaysAttribs& Attribs)
if (CallableShaderTable.pData)
UpdateBuffer(pBuffer, CallableShaderTable.Offset, CallableShaderTable.Size, CallableShaderTable.pData, RESOURCE_STATE_TRANSITION_MODE_VERIFY);
}
- TransitionOrVerifyBufferState(*pSBTBufferVk, Attribs.SBTTransitionMode, RESOURCE_STATE_RAY_TRACING, VK_ACCESS_SHADER_READ_BIT, OpName);
+ TransitionOrVerifyBufferState(*pSBTBufferVk, RESOURCE_STATE_TRANSITION_MODE_TRANSITION, RESOURCE_STATE_RAY_TRACING, VK_ACCESS_SHADER_READ_BIT, OpName);
// clang-format off
VkStridedDeviceAddressRegionKHR RaygenShaderBindingTable = {pSBTBufferVk->GetVkDeviceAddress() + RayGenShaderRecord.Offset, RayGenShaderRecord.Stride, RayGenShaderRecord.Size };