[Vulkan] Explain why CreateShaderModule takes uint32_t* [ci skip]
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user