Commit ff4f70de authored by Florian Oetke's avatar Florian Oetke
Browse files

disabled depth-buffer down-sampling for transparent pass; fixed particle buffer SharingMode

parent c3991cd8
Pipeline #2669 passed with stage
in 10 minutes and 3 seconds
...@@ -52,7 +52,7 @@ namespace mirrage::renderer { ...@@ -52,7 +52,7 @@ namespace mirrage::renderer {
float max_display_luminance = 150.0f; float max_display_luminance = 150.0f;
float amient_light_intensity = 0.1f; float amient_light_intensity = 0.1f;
int transparent_particle_mip_level = 1; int transparent_particle_mip_level = 0;
bool particle_fragment_shadows = true; bool particle_fragment_shadows = true;
bool taa = true; bool taa = true;
......
...@@ -96,14 +96,14 @@ namespace mirrage::renderer { ...@@ -96,14 +96,14 @@ namespace mirrage::renderer {
if(allowed_queues[0] == allowed_queues[1]) if(allowed_queues[0] == allowed_queues[1])
queue_count = 1; queue_count = 1;
auto create_info = vk::BufferCreateInfo{vk::BufferCreateFlags{}, auto create_info = vk::BufferCreateInfo{
size_bytes, vk::BufferCreateFlags{},
vk::BufferUsageFlagBits::eTransferDst size_bytes,
| vk::BufferUsageFlagBits::eStorageBuffer vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer
| vk::BufferUsageFlagBits::eVertexBuffer, | vk::BufferUsageFlagBits::eVertexBuffer,
vk::SharingMode::eConcurrent, queue_count > 1 ? vk::SharingMode::eConcurrent : vk::SharingMode::eExclusive,
queue_count, queue_count,
allowed_queues.data()}; allowed_queues.data()};
particles = renderer.device().create_buffer(create_info, false, graphic::Memory_lifetime::normal); particles = renderer.device().create_buffer(create_info, false, graphic::Memory_lifetime::normal);
} }
...@@ -149,7 +149,7 @@ namespace mirrage::renderer { ...@@ -149,7 +149,7 @@ namespace mirrage::renderer {
vk::BufferCreateFlags{}, vk::BufferCreateFlags{},
size_bytes, size_bytes,
vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer, vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
vk::SharingMode::eConcurrent, queue_count > 1 ? vk::SharingMode::eConcurrent : vk::SharingMode::eExclusive,
queue_count, queue_count,
allowed_queues.data()}; allowed_queues.data()};
buffer = renderer.device().create_buffer(create_info, true, graphic::Memory_lifetime::normal); buffer = renderer.device().create_buffer(create_info, true, graphic::Memory_lifetime::normal);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment