VulkanRenderer: Fix best usage warning
This commit is contained in:
parent
7ef9a3b93c
commit
c02a20457a
|
|
@ -105,7 +105,7 @@ namespace Nz
|
||||||
|
|
||||||
inline bool QueueHandle::Submit(UInt32 commandBufferCount, const VkCommandBuffer* commandBuffers, VkSemaphore waitSemaphore, VkPipelineStageFlags waitStage, VkSemaphore signalSemaphore, VkFence signalFence) const
|
inline bool QueueHandle::Submit(UInt32 commandBufferCount, const VkCommandBuffer* commandBuffers, VkSemaphore waitSemaphore, VkPipelineStageFlags waitStage, VkSemaphore signalSemaphore, VkFence signalFence) const
|
||||||
{
|
{
|
||||||
return Submit(commandBufferCount, commandBuffers, (waitSemaphore) ? 1U : 0U, &waitSemaphore, &waitStage, (signalSemaphore) ? 1U : 0U, &signalSemaphore, signalFence);
|
return Submit(commandBufferCount, commandBuffers, (waitSemaphore) ? 1U : 0U, (waitSemaphore) ? &waitSemaphore : nullptr, &waitStage, (signalSemaphore) ? 1U : 0U, (signalSemaphore) ? &signalSemaphore : nullptr, signalFence);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool QueueHandle::Submit(UInt32 commandBufferCount, const VkCommandBuffer* commandBuffers, UInt32 waitSemaphoreCount, const VkSemaphore* waitSemaphores, const VkPipelineStageFlags* waitStages, UInt32 signalSemaphoreCount, const VkSemaphore* signalSemaphores, VkFence signalFence) const
|
inline bool QueueHandle::Submit(UInt32 commandBufferCount, const VkCommandBuffer* commandBuffers, UInt32 waitSemaphoreCount, const VkSemaphore* waitSemaphores, const VkPipelineStageFlags* waitStages, UInt32 signalSemaphoreCount, const VkSemaphore* signalSemaphores, VkFence signalFence) const
|
||||||
|
|
|
||||||
|
|
@ -282,10 +282,10 @@ namespace Nz
|
||||||
VkValidationFeaturesEXT features = {};
|
VkValidationFeaturesEXT features = {};
|
||||||
features.sType = VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT;
|
features.sType = VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT;
|
||||||
|
|
||||||
std::array<VkValidationFeatureEnableEXT, 1> enabledFeatures = {
|
std::array enabledFeatures = {
|
||||||
//VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,
|
//VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,
|
||||||
//VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT,
|
//VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT,
|
||||||
//VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT,
|
VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT,
|
||||||
VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT
|
VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue