VulkanRaytracingCycles 0.0.0
Cycles Render Engine With VulkanRaytracingShaderModules. ( Experiment , in progress)
PvSvk Struct Reference

#include <vthreepy_types.h>

Public Member Functions

 PvSvk ()
 
void dealloc ()
 
bool isValid ()
 

Public Attributes

VkPipeline pipeline = VK_NULL_HANDLE
 
std::vector< VkShaderModule > shaderModules
 

Detailed Description

Definition at line 354 of file vthreepy_types.h.

Constructor & Destructor Documentation

◆ PvSvk()

PvSvk::PvSvk ( )
inline

Definition at line 358 of file vthreepy_types.h.

358:pipeline(VK_NULL_HANDLE), shaderModules({}) {};
VkPipeline pipeline
std::vector< VkShaderModule > shaderModules

Member Function Documentation

◆ dealloc()

void PvSvk::dealloc ( )
inline

Definition at line 359 of file vthreepy_types.h.

359 {
360
361 if (pipeline != VK_NULL_HANDLE) {
362 for (auto& shaderModule : shaderModules)
363 {
364 vkDestroyShaderModule($device, shaderModule, nullptr);
365 };
366 vkDestroyPipeline($device, pipeline, nullptr);
367 pipeline = VK_NULL_HANDLE;
368 };
369
370 };

◆ isValid()

bool PvSvk::isValid ( )
inline

Definition at line 371 of file vthreepy_types.h.

371 {
372 return pipeline != VK_NULL_HANDLE;
373 }

Member Data Documentation

◆ pipeline

VkPipeline PvSvk::pipeline = VK_NULL_HANDLE

Definition at line 356 of file vthreepy_types.h.

◆ shaderModules

std::vector<VkShaderModule> PvSvk::shaderModules

Definition at line 357 of file vthreepy_types.h.


The documentation for this struct was generated from the following file: