Merge pull request #80034 from darksylinc/matias-fixes
Fix uninitialized variable ending up sent to Vulkan
This commit is contained in:
commit
262d1eaa63
@ -4687,7 +4687,7 @@ Vector<uint8_t> RenderingDeviceVulkan::shader_compile_binary_from_spirv(const Ve
|
|||||||
"Number of uniform sets is larger than what is supported by the hardware (" + itos(limits.maxBoundDescriptorSets) + ").");
|
"Number of uniform sets is larger than what is supported by the hardware (" + itos(limits.maxBoundDescriptorSets) + ").");
|
||||||
|
|
||||||
// Collect reflection data into binary data.
|
// Collect reflection data into binary data.
|
||||||
RenderingDeviceVulkanShaderBinaryData binary_data;
|
RenderingDeviceVulkanShaderBinaryData binary_data{};
|
||||||
Vector<Vector<RenderingDeviceVulkanShaderBinaryDataBinding>> uniform_info; // Set bindings.
|
Vector<Vector<RenderingDeviceVulkanShaderBinaryDataBinding>> uniform_info; // Set bindings.
|
||||||
Vector<RenderingDeviceVulkanShaderBinarySpecializationConstant> specialization_constants;
|
Vector<RenderingDeviceVulkanShaderBinarySpecializationConstant> specialization_constants;
|
||||||
{
|
{
|
||||||
|
@ -382,7 +382,7 @@ String ShaderRD::_version_get_sha1(Version *p_version) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const char *shader_file_header = "GDSC";
|
static const char *shader_file_header = "GDSC";
|
||||||
static const uint32_t cache_file_version = 2;
|
static const uint32_t cache_file_version = 3;
|
||||||
|
|
||||||
bool ShaderRD::_load_from_cache(Version *p_version) {
|
bool ShaderRD::_load_from_cache(Version *p_version) {
|
||||||
String sha1 = _version_get_sha1(p_version);
|
String sha1 = _version_get_sha1(p_version);
|
||||||
|
Loading…
Reference in New Issue
Block a user