[Vulkan] Explain why CreateShaderModule takes uint32_t* [ci skip]

This commit is contained in:
Triang3l 2022-06-20 12:22:41 +03:00
parent b61953374e
commit 67ff108f53
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ bool CreateDedicatedAllocationImage(const VulkanProvider& provider,
uint32_t* memory_type_out = nullptr, uint32_t* memory_type_out = nullptr,
VkDeviceSize* memory_size_out = nullptr); VkDeviceSize* memory_size_out = nullptr);
// Explicitly accepting const uint32_t* to make sure attention is paid to the
// alignment where this is called for safety on different host architectures.
inline VkShaderModule CreateShaderModule(const VulkanProvider& provider, inline VkShaderModule CreateShaderModule(const VulkanProvider& provider,
const uint32_t* code, const uint32_t* code,
size_t code_size_bytes) { size_t code_size_bytes) {