Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/Inventor/rendering/SoVulkanRenderManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ class COIN_DLL_API SoVulkanRenderManager {
*/
void setWireframeOverlay(SbBool enabled);
void setPointsOverlay(SbBool enabled);
void setTessellationOverlay(SbBool enabled);
void setEdgeColor(const SbColor4f & color);
SbBool getWireframeOverlay(void) const;
SbBool getPointsOverlay(void) const;
SbBool getTessellationOverlay(void) const;
const SbColor4f & getEdgeColor(void) const;

void setClearEnabled(SbBool clearwindow, SbBool clearzbuffer);
Expand Down
2 changes: 2 additions & 0 deletions src/rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ set(COIN_RENDERING_FILES
if(COIN_BUILD_VULKAN_RENDERER)
list(APPEND COIN_RENDERING_FILES
SoVulkanRenderBackend/SoVulkanRenderBackendCore.cpp
SoVulkanRenderBackend/SoVulkanRenderPassCache.cpp
SoVulkanRenderBackend/SoVulkanMemPool.cpp
SoVulkanRenderBackend/SoVulkanRenderBackendPipeline.cpp
SoVulkanRenderBackend/SoVulkanRenderBackendGeometry.cpp
Expand Down Expand Up @@ -74,6 +75,7 @@ set(COIN_RENDERING_INTERNAL_FILES
SoGLRenderBackend.h
SoVulkanRenderBackend.h
SoVulkanRenderBackend/SoVulkanRenderBackendP.h
SoVulkanRenderBackend/SoVulkanRenderPassCache.h
SoVulkanShared.h
SoVulkanRenderManager.h
SoRTXRenderBackend.h
Expand Down
16 changes: 16 additions & 0 deletions src/rendering/SoRTXRenderBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ class SoRTXRenderBackend : public SoRenderBackend {
VkCommandBuffer cmd);
bool refitBlas(RTXCachedGeometry & entry, const SoRenderCommand & command,
VkCommandBuffer cmd);
bool blasBuildOrRefit(RTXCachedGeometry & entry,
const SoRenderCommand & command, VkCommandBuffer cmd,
bool refit);
void destroyCacheEntry(RTXCachedGeometry & entry);
bool buildTlas(const SoDrawList & drawlist, const SoRenderParams & params,
VkCommandBuffer cmd);
Expand Down Expand Up @@ -847,6 +850,14 @@ class SoRTXRenderBackend : public SoRenderBackend {
bool ensureNeePoolCapacity(VkDeviceSize bytes);
void buildNeePool(const SoDrawList & drawlist);

// Shared grow-only pool (re)allocation used by ensureNormalPoolCapacity()
// and ensureNeePoolCapacity(): double the host-visible pool until the
// requested size fits, preserving the existing contents and used count.
bool ensurePoolCapacity(VkDeviceSize bytes, VkBuffer & poolBuffer,
VkDeviceMemory & poolMemory, void *& poolMapped,
VkDeviceSize & poolCapacity, VkDeviceSize & poolUsed,
bool refreshDescriptors);

// --- Cache bookkeeping ---------------------------------------------------
std::vector<RTXCachedGeometry> geometryCache;
std::unordered_map<const SoRenderCommand *, size_t> commandToCache;
Expand Down Expand Up @@ -1167,6 +1178,11 @@ class SoRTXRenderBackend : public SoRenderBackend {
void updateDenoise();
//! Read the already-traced storage image back to a PPM (FC_VULKAN_PT_DUMP).
void dumpStorageImageIfRequested();
//! Read the float accumulation buffer back to a PPM (FC_VULKAN_PT_DUMP_ACCUM).
void dumpAccumBufferIfRequested();
//! Read the per-pixel G-buffers (normal/position) back to PPMs
//! (FC_VULKAN_PT_DUMP_GBUF=<dir>).
void dumpGbuffersIfRequested();
//! After publishing a denoised result at target: clear the denoise latch and
//! transition to converged-idle so the viewport keeps the denoised image and
//! stops the continuous-update loop. Also used on the failure paths (with a
Expand Down
Loading
Loading