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

#include <vthreepy_types.h>

Public Member Functions

 MIBvk ()
 
void dealloc ()
 
void copy (MIBvk v)
 
bool isValid ()
 

Public Attributes

VkBuffer buffer = VK_NULL_HANDLE
 
VkDescriptorBufferInfo info
 
VkDeviceMemory memory = VK_NULL_HANDLE
 
size_t size = 0
 
uint32_t count
 
int version = { -1 }
 

Detailed Description

Definition at line 159 of file vthreepy_types.h.

Constructor & Destructor Documentation

◆ MIBvk()

MIBvk::MIBvk ( )
inline

Definition at line 169 of file vthreepy_types.h.

169 :
170 memory(VK_NULL_HANDLE),
171 buffer(VK_NULL_HANDLE),
172 info({}),
173 version(-1),
174 count(0),
175 size(0)
176 {
177 };
VkBuffer buffer
VkDescriptorBufferInfo info
VkDeviceMemory memory
uint32_t count
int version
size_t size

Member Function Documentation

◆ copy()

void MIBvk::copy ( MIBvk  v)
inline

Definition at line 185 of file vthreepy_types.h.

185 {
186 memory = v.memory;
187 buffer = v.buffer;
188 count = v.count;
189 version = v.version;
190 info = v.info;
191 size = v.size;
192 }

◆ dealloc()

void MIBvk::dealloc ( )
inline

Definition at line 179 of file vthreepy_types.h.

179 {
180 if (buffer) {
181 vkDestroyBuffer($device, buffer, nullptr);
182 vkFreeMemory($device, memory, nullptr);
183 }
184 };

◆ isValid()

bool MIBvk::isValid ( )
inline

Definition at line 193 of file vthreepy_types.h.

193 {
194 return buffer != VK_NULL_HANDLE;
195 }

Member Data Documentation

◆ buffer

VkBuffer MIBvk::buffer = VK_NULL_HANDLE

Definition at line 161 of file vthreepy_types.h.

◆ count

uint32_t MIBvk::count

Definition at line 165 of file vthreepy_types.h.

◆ info

VkDescriptorBufferInfo MIBvk::info

Definition at line 162 of file vthreepy_types.h.

◆ memory

VkDeviceMemory MIBvk::memory = VK_NULL_HANDLE

Definition at line 163 of file vthreepy_types.h.

◆ size

size_t MIBvk::size = 0

Definition at line 164 of file vthreepy_types.h.

◆ version

int MIBvk::version = { -1 }

Definition at line 167 of file vthreepy_types.h.


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