only add debug extension in debug build
This commit is contained in:
parent
ecaac2afc1
commit
e0a5f2a0b4
1 changed files with 15 additions and 14 deletions
|
@ -85,6 +85,7 @@ impl RendererBackendManager {
|
|||
.unwrap()
|
||||
.to_vec();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
extension_names.push(DebugUtils::name().as_ptr());
|
||||
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
|
@ -480,21 +481,21 @@ impl VulkanWindowInner {
|
|||
self.framebuffers =
|
||||
FramebufferData::new(&self.swapchain, &self.vulkan_data, self.renderpass);
|
||||
|
||||
let image_ptr = self
|
||||
.vulkan_data
|
||||
.device
|
||||
.map_memory(
|
||||
self.swapchain.shader_input_image_buffer_memory,
|
||||
0,
|
||||
self.swapchain.shader_input_image_buffer_memory_req.size,
|
||||
vk::MemoryMapFlags::empty(),
|
||||
)
|
||||
.unwrap();
|
||||
self.image_slice = Align::new(
|
||||
image_ptr,
|
||||
std::mem::align_of::<u8>() as u64,
|
||||
let image_ptr = self
|
||||
.vulkan_data
|
||||
.device
|
||||
.map_memory(
|
||||
self.swapchain.shader_input_image_buffer_memory,
|
||||
0,
|
||||
self.swapchain.shader_input_image_buffer_memory_req.size,
|
||||
);
|
||||
vk::MemoryMapFlags::empty(),
|
||||
)
|
||||
.unwrap();
|
||||
self.image_slice = Align::new(
|
||||
image_ptr,
|
||||
std::mem::align_of::<u8>() as u64,
|
||||
self.swapchain.shader_input_image_buffer_memory_req.size,
|
||||
);
|
||||
}
|
||||
|
||||
unsafe fn new_frame(&mut self, buffer: &[[u8; 4]]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue