VulkanRaytracingCycles 0.0.0
Cycles Render Engine With VulkanRaytracingShaderModules. ( Experiment , in progress)
|
#include <CmdPoolVk.h>
Public Member Functions | |
void | createCommandPool () |
void | destroyCommandPool () |
void | alloc () |
void | free () |
bool | allocStaging (size_t size) |
template<class INFO > | |
bool | allocStaging (INFO &_) |
void | freeStaging () |
void | begin () |
void | end () |
void | submit (int i=0) |
void | wait () |
Public Attributes | |
struct { | |
VkDeviceMemory memory | |
VkBuffer buffer | |
uint8_t * data | |
int Nums | |
VkMemoryAllocateInfo allocInfo | |
VkMemoryRequirements memReqs | |
VkBufferCreateInfo bufferCreateInfo | |
} | staging = { VK_NULL_HANDLE ,VK_NULL_HANDLE ,nullptr ,0,{}, {},{} } |
VkCommandBuffer | cmd |
bool | commit |
VkCommandPool | cmdPool |
VkQueue | queue |
Definition at line 16 of file CmdPoolVk.h.
void ImmidiateCmdPool::alloc | ( | ) |
Definition at line 92 of file CmdPoolVk.cpp.
|
inline |
Definition at line 47 of file CmdPoolVk.h.
bool ImmidiateCmdPool::allocStaging | ( | size_t | size | ) |
staging.memReqs.memoryTypeBits = 1665; staging.allocInfo.memoryTypeIndex = vka::shelve::getMemoryType(staging.memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
if (staging.allocInfo.allocationSize < staging.memReqs.size) {
if (staging.allocInfo.allocationSize != 0) {
Definition at line 122 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::begin | ( | ) |
Definition at line 183 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::createCommandPool | ( | ) |
queue = ctx->device.Qvillage.queueTR;
Definition at line 252 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::destroyCommandPool | ( | ) |
Definition at line 275 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::end | ( | ) |
Definition at line 191 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::free | ( | ) |
Definition at line 106 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::freeStaging | ( | ) |
Definition at line 165 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::submit | ( | int | i = 0 | ) |
log_imcm("IMCM QUEUE submit [%x] %p \n", _threadid, queue);
Definition at line 198 of file CmdPoolVk.cpp.
void ImmidiateCmdPool::wait | ( | ) |
log_img("IMCM Q Submit %x this[%u] \n ", queue, GetCurrentThreadId());
Definition at line 244 of file CmdPoolVk.cpp.
VkMemoryAllocateInfo ImmidiateCmdPool::allocInfo |
Definition at line 25 of file CmdPoolVk.h.
VkBuffer ImmidiateCmdPool::buffer |
Definition at line 22 of file CmdPoolVk.h.
VkBufferCreateInfo ImmidiateCmdPool::bufferCreateInfo |
Definition at line 27 of file CmdPoolVk.h.
VkCommandBuffer ImmidiateCmdPool::cmd |
Definition at line 31 of file CmdPoolVk.h.
VkCommandPool ImmidiateCmdPool::cmdPool |
Definition at line 33 of file CmdPoolVk.h.
bool ImmidiateCmdPool::commit |
Definition at line 32 of file CmdPoolVk.h.
uint8_t* ImmidiateCmdPool::data |
Definition at line 23 of file CmdPoolVk.h.
VkDeviceMemory ImmidiateCmdPool::memory |
Definition at line 21 of file CmdPoolVk.h.
VkMemoryRequirements ImmidiateCmdPool::memReqs |
Definition at line 26 of file CmdPoolVk.h.
|
mutable |
Definition at line 24 of file CmdPoolVk.h.
VkQueue ImmidiateCmdPool::queue |
Definition at line 34 of file CmdPoolVk.h.
struct { ... } ImmidiateCmdPool::staging |