Skip to content

phase 4: m_allocator.destroyBuffer(m_sbtBuffer) called twice#97

Open
Enhex wants to merge 1 commit into
nvpro-samples:v2from
Enhex:patch-2
Open

phase 4: m_allocator.destroyBuffer(m_sbtBuffer) called twice#97
Enhex wants to merge 1 commit into
nvpro-samples:v2from
Enhex:patch-2

Conversation

@Enhex

@Enhex Enhex commented May 28, 2026

Copy link
Copy Markdown
Contributor

in phase 4 m_allocator.destroyBuffer(m_sbtBuffer) is called twice

once in createRayTracingPipeline()
and again when createRayTracingPipeline() calls createShaderBindingTable().

the buffer is only used and recreated inside createShaderBindingTable() so it should be safe to remove the destructor in createRayTracingPipeline()

in phase 5 the code behaves like this and destroys it once in createShaderBindingTable()

@mklefrancois

Copy link
Copy Markdown
Collaborator

Thanks, this make sense

@mklefrancois

Copy link
Copy Markdown
Collaborator

Sign-off is missing. If not done, I'll make the change.

in phase 4 m_allocator.destroyBuffer(m_sbtBuffer) is called twice

once in createRayTracingPipeline()
and again when createRayTracingPipeline() calls createShaderBindingTable().

the buffer is only used and recreated inside createShaderBindingTable() so it should be safe to remove the destructor in createRayTracingPipeline()

in phase 5 the code behaves like this and destroys it once in createShaderBindingTable().

Signed-off-by: Enhex <enhex0@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants