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

#include <vthreepy_types.h>

Public Member Functions

 MBvk ()
 
bool isValid ()
 
void dealloc ()
 

Public Attributes

VkDeviceMemory memory
 
VkBuffer buffer = VK_NULL_HANDLE
 
VkIndexType idxType
 
int version = { -1 }
 
uint32_t count
 

Detailed Description

Definition at line 131 of file vthreepy_types.h.

Constructor & Destructor Documentation

◆ MBvk()

MBvk::MBvk ( )
inline

Definition at line 138 of file vthreepy_types.h.

138 :
139 memory(VK_NULL_HANDLE),
140 buffer(VK_NULL_HANDLE),
141 version(-1),
142 count(0),
143 idxType(VK_INDEX_TYPE_UINT32)
144 {};
uint32_t count
VkBuffer buffer
VkIndexType idxType
VkDeviceMemory memory
int version

Member Function Documentation

◆ dealloc()

void MBvk::dealloc ( )
inline

Definition at line 148 of file vthreepy_types.h.

148 {
149 if (buffer != VK_NULL_HANDLE) {
150 vkDestroyBuffer($device, buffer, nullptr);
151 vkFreeMemory($device, memory, nullptr);
152 buffer = VK_NULL_HANDLE;
153 memory = VK_NULL_HANDLE;
154 };
155 };

◆ isValid()

bool MBvk::isValid ( )
inline

Definition at line 145 of file vthreepy_types.h.

145 {
146 return buffer != VK_NULL_HANDLE;
147 }

Member Data Documentation

◆ buffer

VkBuffer MBvk::buffer = VK_NULL_HANDLE

Definition at line 134 of file vthreepy_types.h.

◆ count

uint32_t MBvk::count

Definition at line 137 of file vthreepy_types.h.

◆ idxType

VkIndexType MBvk::idxType

Definition at line 135 of file vthreepy_types.h.

◆ memory

VkDeviceMemory MBvk::memory

Definition at line 133 of file vthreepy_types.h.

◆ version

int MBvk::version = { -1 }

Definition at line 136 of file vthreepy_types.h.


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