|
@@ -5172,9 +5172,9 @@ Vector<uint8_t> RenderingDeviceVulkan::shader_compile_binary_from_spirv(const Ve
|
|
uint32_t offset = 0;
|
|
uint32_t offset = 0;
|
|
uint8_t *binptr = ret.ptrw();
|
|
uint8_t *binptr = ret.ptrw();
|
|
binptr[0] = 'G';
|
|
binptr[0] = 'G';
|
|
- binptr[1] = 'V';
|
|
|
|
|
|
+ binptr[1] = 'S';
|
|
binptr[2] = 'B';
|
|
binptr[2] = 'B';
|
|
- binptr[3] = 'D'; // Godot vulkan binary data.
|
|
|
|
|
|
+ binptr[3] = 'D'; // Godot Shader Binary Data.
|
|
offset += 4;
|
|
offset += 4;
|
|
encode_uint32(SHADER_BINARY_VERSION, binptr + offset);
|
|
encode_uint32(SHADER_BINARY_VERSION, binptr + offset);
|
|
offset += sizeof(uint32_t);
|
|
offset += sizeof(uint32_t);
|
|
@@ -5235,7 +5235,7 @@ RID RenderingDeviceVulkan::shader_create_from_bytecode(const Vector<uint8_t> &p_
|
|
uint32_t read_offset = 0;
|
|
uint32_t read_offset = 0;
|
|
// Consistency check.
|
|
// Consistency check.
|
|
ERR_FAIL_COND_V(binsize < sizeof(uint32_t) * 3 + sizeof(RenderingDeviceVulkanShaderBinaryData), RID());
|
|
ERR_FAIL_COND_V(binsize < sizeof(uint32_t) * 3 + sizeof(RenderingDeviceVulkanShaderBinaryData), RID());
|
|
- ERR_FAIL_COND_V(binptr[0] != 'G' || binptr[1] != 'V' || binptr[2] != 'B' || binptr[3] != 'D', RID());
|
|
|
|
|
|
+ ERR_FAIL_COND_V(binptr[0] != 'G' || binptr[1] != 'S' || binptr[2] != 'B' || binptr[3] != 'D', RID());
|
|
|
|
|
|
uint32_t bin_version = decode_uint32(binptr + 4);
|
|
uint32_t bin_version = decode_uint32(binptr + 4);
|
|
ERR_FAIL_COND_V(bin_version != SHADER_BINARY_VERSION, RID());
|
|
ERR_FAIL_COND_V(bin_version != SHADER_BINARY_VERSION, RID());
|
|
@@ -9393,7 +9393,7 @@ void RenderingDeviceVulkan::initialize(VulkanContext *p_context, bool p_local_de
|
|
ERR_CONTINUE(err != OK);
|
|
ERR_CONTINUE(err != OK);
|
|
}
|
|
}
|
|
|
|
|
|
- max_descriptors_per_pool = GLOBAL_DEF("rendering/rendering_device/descriptor_pools/max_descriptors_per_pool", 64);
|
|
|
|
|
|
+ max_descriptors_per_pool = GLOBAL_DEF("rendering/rendering_device/vulkan/max_descriptors_per_pool", 64);
|
|
|
|
|
|
// Check to make sure DescriptorPoolKey is good.
|
|
// Check to make sure DescriptorPoolKey is good.
|
|
static_assert(sizeof(uint64_t) * 3 >= UNIFORM_TYPE_MAX * sizeof(uint16_t));
|
|
static_assert(sizeof(uint64_t) * 3 >= UNIFORM_TYPE_MAX * sizeof(uint16_t));
|