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 {
float max_display_luminance = 150.0f;
float amient_light_intensity = 0.1f;
int transparent_particle_mip_level = 1;
int transparent_particle_mip_level = 0;
bool particle_fragment_shadows = true;
bool taa = true;
......
......@@ -96,14 +96,14 @@ namespace mirrage::renderer {
if(allowed_queues[0] == allowed_queues[1])
queue_count = 1;
auto create_info = vk::BufferCreateInfo{vk::BufferCreateFlags{},
size_bytes,
vk::BufferUsageFlagBits::eTransferDst
| vk::BufferUsageFlagBits::eStorageBuffer
| vk::BufferUsageFlagBits::eVertexBuffer,
vk::SharingMode::eConcurrent,
queue_count,
allowed_queues.data()};
auto create_info = vk::BufferCreateInfo{
vk::BufferCreateFlags{},
size_bytes,
vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer
| vk::BufferUsageFlagBits::eVertexBuffer,
queue_count > 1 ? vk::SharingMode::eConcurrent : vk::SharingMode::eExclusive,
queue_count,
allowed_queues.data()};
particles = renderer.device().create_buffer(create_info, false, graphic::Memory_lifetime::normal);
}
......@@ -149,7 +149,7 @@ namespace mirrage::renderer {
vk::BufferCreateFlags{},
size_bytes,
vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
vk::SharingMode::eConcurrent,
queue_count > 1 ? vk::SharingMode::eConcurrent : vk::SharingMode::eExclusive,
queue_count,
allowed_queues.data()};
buffer = renderer.device().create_buffer(create_info, true, graphic::Memory_lifetime::normal);
......
Markdown is supported
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