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

#include <vthreepy_types.h>

Public Member Functions

 MBIVSIvk ()
 
void dealloc ()
 
bool isValid ()
 

Public Attributes

size_t size
 
uint32_t w
 
uint32_t h
 
uint32_t d
 
uint32_t l
 
uint32_t c
 
uint32_t mipLevel
 
VkMemoryRequirements memReqs
 
VkDeviceMemory memory
 
VkImage image
 
VkImageView view
 
VkSampler sampler
 
VkBuffer buffer
 
VkDescriptorImageInfo Info
 
VkDescriptorBufferInfo bInfo
 
VkFormat format
 
bool valid
 
int version = { -1 }
 

Detailed Description

Definition at line 272 of file vthreepy_types.h.

Constructor & Destructor Documentation

◆ MBIVSIvk()

MBIVSIvk::MBIVSIvk ( )
inline

Definition at line 286 of file vthreepy_types.h.

286 :
287 memory(VK_NULL_HANDLE),
288 image(VK_NULL_HANDLE),
289 view(VK_NULL_HANDLE),
290 sampler(VK_NULL_HANDLE),
291 buffer(VK_NULL_HANDLE),
292 memReqs({}),
293 Info({}),
294 valid(false)
295 {
296 size = 0;
297 w = h = d = l = c = 0;
298 };
VkSampler sampler
size_t size
uint32_t h
uint32_t l
VkMemoryRequirements memReqs
uint32_t d
uint32_t w
uint32_t c
VkImageView view
VkBuffer buffer
VkDescriptorImageInfo Info
VkImage image
VkDeviceMemory memory

Member Function Documentation

◆ dealloc()

void MBIVSIvk::dealloc ( )
inline

Definition at line 299 of file vthreepy_types.h.

299 {
300
301 if (sampler != VK_NULL_HANDLE) vkDestroySampler($device, sampler, nullptr);
302 if (view != VK_NULL_HANDLE) vkDestroyImageView($device, view, nullptr);
303 if (image != VK_NULL_HANDLE) vkDestroyImage($device, image, nullptr);
304 if (buffer != VK_NULL_HANDLE) vkDestroyBuffer($device,buffer, nullptr);
305 if (memory != VK_NULL_HANDLE) vkFreeMemory($device, memory, nullptr);
306
307 memory = VK_NULL_HANDLE,
308 image = VK_NULL_HANDLE,
309 view = VK_NULL_HANDLE,
310 buffer = VK_NULL_HANDLE,
311 sampler = VK_NULL_HANDLE;
312 };

◆ isValid()

bool MBIVSIvk::isValid ( )
inline

Definition at line 313 of file vthreepy_types.h.

313 {
314 return memory != VK_NULL_HANDLE;
315 }

Member Data Documentation

◆ bInfo

VkDescriptorBufferInfo MBIVSIvk::bInfo

Definition at line 282 of file vthreepy_types.h.

◆ buffer

VkBuffer MBIVSIvk::buffer

Definition at line 280 of file vthreepy_types.h.

◆ c

uint32_t MBIVSIvk::c

Definition at line 274 of file vthreepy_types.h.

◆ d

uint32_t MBIVSIvk::d

Definition at line 274 of file vthreepy_types.h.

◆ format

VkFormat MBIVSIvk::format

Definition at line 283 of file vthreepy_types.h.

◆ h

uint32_t MBIVSIvk::h

Definition at line 274 of file vthreepy_types.h.

◆ image

VkImage MBIVSIvk::image

Definition at line 277 of file vthreepy_types.h.

◆ Info

VkDescriptorImageInfo MBIVSIvk::Info

Definition at line 281 of file vthreepy_types.h.

◆ l

uint32_t MBIVSIvk::l

Definition at line 274 of file vthreepy_types.h.

◆ memory

VkDeviceMemory MBIVSIvk::memory

Definition at line 276 of file vthreepy_types.h.

◆ memReqs

VkMemoryRequirements MBIVSIvk::memReqs

Definition at line 275 of file vthreepy_types.h.

◆ mipLevel

uint32_t MBIVSIvk::mipLevel

Definition at line 274 of file vthreepy_types.h.

◆ sampler

VkSampler MBIVSIvk::sampler

Definition at line 279 of file vthreepy_types.h.

◆ size

size_t MBIVSIvk::size

Definition at line 273 of file vthreepy_types.h.

◆ valid

bool MBIVSIvk::valid

Definition at line 284 of file vthreepy_types.h.

◆ version

int MBIVSIvk::version = { -1 }

Definition at line 285 of file vthreepy_types.h.

◆ view

VkImageView MBIVSIvk::view

Definition at line 278 of file vthreepy_types.h.

◆ w

uint32_t MBIVSIvk::w

Definition at line 274 of file vthreepy_types.h.


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