17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-11 11:19:48 +01:00

Replace cubemap scenery reflections with SSR, add Vulkan ray traced reflections

This commit is contained in:
2026-10-25 13:54:49 +01:00
parent 89f11895fc
commit f20b1a3071
45 changed files with 2725 additions and 174 deletions

View File

@@ -89,6 +89,8 @@ class buffer
{
return m_mapped;
}
// the device address of the buffer, made with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT (the ray tracing)
VkDeviceAddress address() const;
// makes the writes of the cpu seen by the gpu where the memory isn't coherent
void flush(VkDeviceSize Offset, VkDeviceSize Size) const;
// makes the writes of the gpu seen by the cpu where the memory isn't coherent (readback memory may be cached)
@@ -104,6 +106,7 @@ class buffer
VmaAllocation m_allocation{VK_NULL_HANDLE};
VkDeviceSize m_size{0};
std::uint8_t *m_mapped{nullptr};
mutable VkDeviceAddress m_address{0}; // asked for the first time it's needed
};
// the state of an image the barriers start from: its layout and the last stage and access which used it