SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TraceRays() [1/2]

void Spices::Renderer::RayTracingRenderBehaveBuilder::TraceRays ( ) const

Call vkCmdTraceRaysKHR here.

Definition at line 1200 of file Renderer.cpp.

1201 {
1203
1204 const uint32_t width = static_cast<uint32_t>(SlateSystem::GetRegister()->GetViewPort()->GetPanelSize().x);
1205 const uint32_t height = static_cast<uint32_t>(SlateSystem::GetRegister()->GetViewPort()->GetPanelSize().y);
1206
1207 /*
1208 * @attention Vulkan not allow dynamic state in mixing raytracing pipeline and custom graphic pipeline.
1209 * @see https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/8038.
1210 */
1211 m_Renderer->m_VulkanState.m_VkFunc.vkCmdTraceRaysKHR(
1217 width ,
1218 height ,
1219 1
1220 );
1221 }
#define SPICES_PROFILE_ZONE
VulkanRayTracing * m_VulkanRayTracing
Referenced VulkanRayTracing.
Definition Renderer.h:1730
Renderer * m_Renderer
Specific Renderer pointer. Passed while this class instanced.
Definition Renderer.h:1515
VkCommandBuffer m_CommandBuffer
Current CommandBuffer.
Definition Renderer.h:1539
VulkanState & m_VulkanState
This variable is passed while renderer instanced.
Definition Renderer.h:1992
static std::shared_ptr< SlateRegister > GetRegister()
Get slate register.
Definition SlateSystem.h:67
VkStridedDeviceAddressRegionKHR & GetCallRegion()
Get SBT CallRegion.
VkStridedDeviceAddressRegionKHR & GetMissRegion()
Get SBT MissRegion.
VkStridedDeviceAddressRegionKHR & GetRgenRegion()
Get SBT RgenRegion.
VkStridedDeviceAddressRegionKHR & GetHitRegion()
Get SBT HitRegion.
VulkanFunctions m_VkFunc
Definition VulkanUtils.h:98

Referenced by Spices::RayTracingRenderer::Render().