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

#include <vthreepy_types.h>

Public Member Functions

void dealloc ()
 
bool isValid ()
 

Public Attributes

VkDeviceMemory memory = VK_NULL_HANDLE
 
size_t size = 0
 
int version = { -1 }
 

Detailed Description

Definition at line 376 of file vthreepy_types.h.

Member Function Documentation

◆ dealloc()

void Mvk::dealloc ( )
inline

Definition at line 381 of file vthreepy_types.h.

381 {
382 if (memory != VK_NULL_HANDLE) {
383 vkFreeMemory($device, memory, nullptr);
384 memory = VK_NULL_HANDLE;
385 };
386 };
VkDeviceMemory memory

◆ isValid()

bool Mvk::isValid ( )
inline

Definition at line 387 of file vthreepy_types.h.

387 {
388 return memory != VK_NULL_HANDLE;
389 }

Member Data Documentation

◆ memory

VkDeviceMemory Mvk::memory = VK_NULL_HANDLE

Definition at line 378 of file vthreepy_types.h.

◆ size

size_t Mvk::size = 0

Definition at line 379 of file vthreepy_types.h.

◆ version

int Mvk::version = { -1 }

Definition at line 380 of file vthreepy_types.h.


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