1
0
Fork 0
godot/drivers/vulkan
Stuart Carnie 65e8b0951b Renderer: Move reflect_spirv to RenderingShaderContainer
This change introduces a new protected type, `ReflectedShaderStage` to
`RenderingShaderContainer` that derived types use to access SPIR-V and
the reflected module, `SpvReflectShaderModule` allowing implementations
to use the reflection information to compile their platform-specific
module.

* Fixes memory leak in `reflect_spirv` that would not deallocate the
  `SpvReflectShaderModule` if an error occurred.
* Removes unnecessary allocation when creating `SpvReflectShaderModule`
  by passing `NO_COPY` flag to `spvReflectCreateShaderModule2`
  constructor function.
* Replaces `VectorView` with `Span` for consistency
* Fixes unnecessary allocations in D3D12 shader container in
  `_convert_spirv_to_nir` and `_convert_spirv_to_dxil` which implicitly
  converted the old `VectorView` to a `Vector`
2025-09-30 06:40:14 +10:00
..
SCsub SCons: Ensure `CPPDEFINES` is properly utilized 2025-07-14 13:07:53 -05:00
godot_vulkan.h Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
rendering_context_driver_vulkan.cpp Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp 2025-03-12 11:11:38 -07:00
rendering_context_driver_vulkan.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
rendering_device_driver_vulkan.cpp Rename RDD::MemoryBarrier to avoid conflicts with the Windows headers. 2025-09-10 05:19:36 -05:00
rendering_device_driver_vulkan.h Rename RDD::MemoryBarrier to avoid conflicts with the Windows headers. 2025-09-10 05:19:36 -05:00
rendering_shader_container_vulkan.cpp Renderer: Move reflect_spirv to RenderingShaderContainer 2025-09-30 06:40:14 +10:00
rendering_shader_container_vulkan.h Renderer: Move reflect_spirv to RenderingShaderContainer 2025-09-30 06:40:14 +10:00
vulkan_hooks.cpp Finish splitting functionality of the Vulkan and D3D12 backends into RenderingDeviceDriver. 2024-02-12 10:02:18 -03:00
vulkan_hooks.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00