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

fixed small errors

parent b7bf73fc
Pipeline #3207 passed with stage
in 17 minutes and 43 seconds
...@@ -74,10 +74,8 @@ namespace mirrage::renderer { ...@@ -74,10 +74,8 @@ namespace mirrage::renderer {
vk::DescriptorType::eStorageImage, vk::DescriptorType::eStorageImage,
vk::DescriptorType::eSampledImage, vk::DescriptorType::eSampledImage,
vk::DescriptorType::eSampler}) vk::DescriptorType::eSampler})
, _gbuffer(gbuffer_required(passes) ? std::make_unique<GBuffer>(device(), , _gbuffer(gbuffer_required(passes) ? std::make_unique<GBuffer>(
_descriptor_set_pool, device(), _descriptor_set_pool, factory._window.width(), factory._window.height())
factory._window.width(),
factory._window.height())
: std::unique_ptr<GBuffer>()) : std::unique_ptr<GBuffer>())
, _profiler(device(), 128) , _profiler(device(), 128)
...@@ -608,7 +606,6 @@ namespace mirrage::renderer { ...@@ -608,7 +606,6 @@ namespace mirrage::renderer {
vk::ImageLayout::ePresentSrcKHR, vk::ImageLayout::ePresentSrcKHR,
0, 0,
1); 1);
//return; // nothing drawn, nothing to do
} }
......
...@@ -14,6 +14,8 @@ namespace mirrage::util { ...@@ -14,6 +14,8 @@ namespace mirrage::util {
using default_rand = std::mt19937_64; using default_rand = std::mt19937_64;
struct random_seed_seq { struct random_seed_seq {
using result_type = std::random_device::result_type;
template <typename It> template <typename It>
void generate(It begin, It end) void generate(It begin, It end)
{ {
......
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