VulkanRaytracingCycles 0.0.0
Cycles Render Engine With VulkanRaytracingShaderModules. ( Experiment , in progress)
cmcm Namespace Reference

Functions

template<typename T , typename T2 >
void TransX (T &pool, T2 &dst, VkImageLayout O, VkImageLayout X)
 

Function Documentation

◆ TransX()

template<typename T , typename T2 >
void cmcm::TransX ( T &  pool,
T2 &  dst,
VkImageLayout  O,
VkImageLayout  X 
)

Definition at line 120 of file CmdPoolVk.h.

120 {
121
122 VkImageSubresourceRange subresourceRange = {};
123 subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
124 subresourceRange.baseMipLevel = 0;
125 subresourceRange.levelCount = dst.mipLevel;
126 subresourceRange.layerCount = dst.l;
127
128 pool.begin();
129
130 vka::shelve::setImageLayout(
131 pool.cmd,
132 dst.image,
133 O,
134 X,
135 subresourceRange);
136
137 pool.end();
138 pool.submit();
139 pool.wait();
140
141
142
143 dst.Info.imageLayout = X;
144
145 };