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

#include <vthreepy_types.h>

Public Member Functions

 MIVvk ()
 
void dealloc ()
 
bool isValid ()
 

Public Attributes

size_t size
 
uint32_t w
 
uint32_t h
 
uint32_t d
 
uint32_t l
 
uint32_t c
 
VkDeviceMemory memory
 
VkImage image
 
VkImageView view
 
VkDescriptorImageInfo Info
 
int version = { -1 }
 

Detailed Description

Definition at line 318 of file vthreepy_types.h.

Constructor & Destructor Documentation

◆ MIVvk()

MIVvk::MIVvk ( )
inline

Definition at line 327 of file vthreepy_types.h.

327 :
328 memory(VK_NULL_HANDLE),
329 image(VK_NULL_HANDLE),
330 view(VK_NULL_HANDLE),
331 Info({})
332 {
333 size = 0;
334 w = h = d = l = c = 0;
335 };
VkImage image
VkImageView view
uint32_t w
uint32_t l
VkDescriptorImageInfo Info
uint32_t h
uint32_t c
VkDeviceMemory memory
uint32_t d
size_t size

Member Function Documentation

◆ dealloc()

void MIVvk::dealloc ( )
inline

Definition at line 336 of file vthreepy_types.h.

336 {
337
338 if (view != VK_NULL_HANDLE) vkDestroyImageView($device, view, nullptr);
339 if (image != VK_NULL_HANDLE) vkDestroyImage($device, image, nullptr);
340 if (memory != VK_NULL_HANDLE) vkFreeMemory($device, memory, nullptr);
341
342 memory = VK_NULL_HANDLE,
343 image = VK_NULL_HANDLE,
344 view = VK_NULL_HANDLE;
345
346 };

◆ isValid()

bool MIVvk::isValid ( )
inline

Definition at line 347 of file vthreepy_types.h.

347 {
348 return memory != VK_NULL_HANDLE;
349 }

Member Data Documentation

◆ c

uint32_t MIVvk::c

Definition at line 321 of file vthreepy_types.h.

◆ d

uint32_t MIVvk::d

Definition at line 321 of file vthreepy_types.h.

◆ h

uint32_t MIVvk::h

Definition at line 321 of file vthreepy_types.h.

◆ image

VkImage MIVvk::image

Definition at line 323 of file vthreepy_types.h.

◆ Info

VkDescriptorImageInfo MIVvk::Info

Definition at line 325 of file vthreepy_types.h.

◆ l

uint32_t MIVvk::l

Definition at line 321 of file vthreepy_types.h.

◆ memory

VkDeviceMemory MIVvk::memory

Definition at line 322 of file vthreepy_types.h.

◆ size

size_t MIVvk::size

Definition at line 320 of file vthreepy_types.h.

◆ version

int MIVvk::version = { -1 }

Definition at line 326 of file vthreepy_types.h.

◆ view

VkImageView MIVvk::view

Definition at line 324 of file vthreepy_types.h.

◆ w

uint32_t MIVvk::w

Definition at line 321 of file vthreepy_types.h.


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