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

#include <incomplete.h>

Public Member Functions

 StoBache ()
 
 ~StoBache ()
 
void dealloc ()
 
bool operator< (const StoBache &rhs) const
 

Public Attributes

long id = { -1 }
 
Hache buffer
 
VkDeviceSize align
 
VkDeviceSize reqAlign
 
VkDeviceSize size
 
VkDeviceSize reqSize
 
VkDeviceSize offset
 
VkFormat format
 
VkBuffer vkBuffer
 
VkDescriptorBufferInfo info
 
std::vector< VkBufferView > view
 
uint32_t set
 
uint32_t binding
 
void * mapped
 

Detailed Description

Definition at line 206 of file incomplete.h.

Constructor & Destructor Documentation

◆ StoBache()

StoBache::StoBache ( )
inline

Definition at line 224 of file incomplete.h.

224 {
225 memset(this, 0, sizeof(StoBache));
226 buffer.id = -1;
227 };
Hache buffer
Definition: incomplete.h:209

◆ ~StoBache()

StoBache::~StoBache ( )
inline

Definition at line 229 of file incomplete.h.

229 {
230 dealloc();
231 };
void dealloc()
Definition: incomplete.h:232

Member Function Documentation

◆ dealloc()

void StoBache::dealloc ( )
inline

Definition at line 232 of file incomplete.h.

232 {
233 for (auto& v : view) {
234 if (v != VK_NULL_HANDLE) {
235 vkDestroyBufferView($device, v, NULL);
236 v = VK_NULL_HANDLE;
237 }
238 };
239 view.clear();
240 };
std::vector< VkBufferView > view
Definition: incomplete.h:219

◆ operator<()

bool StoBache::operator< ( const StoBache rhs) const
inline

Definition at line 243 of file incomplete.h.

243 {
244 return binding < rhs.binding;
245 }
uint32_t binding
Definition: incomplete.h:220

Member Data Documentation

◆ align

VkDeviceSize StoBache::align

Definition at line 210 of file incomplete.h.

◆ binding

uint32_t StoBache::binding

Definition at line 220 of file incomplete.h.

◆ buffer

Hache StoBache::buffer

Definition at line 209 of file incomplete.h.

◆ format

VkFormat StoBache::format

Definition at line 216 of file incomplete.h.

◆ id

long StoBache::id = { -1 }

Definition at line 208 of file incomplete.h.

◆ info

VkDescriptorBufferInfo StoBache::info

Definition at line 218 of file incomplete.h.

◆ mapped

void* StoBache::mapped

Definition at line 222 of file incomplete.h.

◆ offset

VkDeviceSize StoBache::offset

Definition at line 215 of file incomplete.h.

◆ reqAlign

VkDeviceSize StoBache::reqAlign

Definition at line 211 of file incomplete.h.

◆ reqSize

VkDeviceSize StoBache::reqSize

Definition at line 214 of file incomplete.h.

◆ set

uint32_t StoBache::set

Definition at line 220 of file incomplete.h.

◆ size

VkDeviceSize StoBache::size

Definition at line 213 of file incomplete.h.

◆ view

std::vector<VkBufferView> StoBache::view

Definition at line 219 of file incomplete.h.

◆ vkBuffer

VkBuffer StoBache::vkBuffer

Definition at line 217 of file incomplete.h.


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