You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Silence mulitple may be used uninitialized warnings in
RenderingDeviceVulkan::uniform_set_create()
This commit is contained in:
@@ -4500,6 +4500,12 @@ RID RenderingDeviceVulkan::uniform_set_create(const Vector<Uniform> &p_uniforms,
|
|||||||
write.pNext = nullptr;
|
write.pNext = nullptr;
|
||||||
write.dstSet = VK_NULL_HANDLE; //will assign afterwards when everything is valid
|
write.dstSet = VK_NULL_HANDLE; //will assign afterwards when everything is valid
|
||||||
write.dstBinding = set_uniform.binding;
|
write.dstBinding = set_uniform.binding;
|
||||||
|
write.dstArrayElement = 0;
|
||||||
|
write.descriptorCount = 0;
|
||||||
|
write.descriptorType = VK_DESCRIPTOR_TYPE_MAX_ENUM; //Invalid value.
|
||||||
|
write.pImageInfo = nullptr;
|
||||||
|
write.pBufferInfo = nullptr;
|
||||||
|
write.pTexelBufferView = nullptr;
|
||||||
uint32_t type_size = 1;
|
uint32_t type_size = 1;
|
||||||
|
|
||||||
switch (uniform.type) {
|
switch (uniform.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user