Update texture sampler config handling

This commit is contained in:
Georg Hagen
2024-08-03 19:16:46 +02:00
parent ccc234b699
commit de06623105
2 changed files with 5 additions and 4 deletions

View File

@@ -34,10 +34,10 @@ namespace OpenVulkano::Scene
Math::Vector3ui resolution = {0,0,0};
DataFormat format = DataFormat::B8G8R8A8_UNORM;
UpdateFrequency updateFrequency = UpdateFrequency::Never;
const SamplerConfig& m_samplerConfig;
const SamplerConfig* m_samplerConfig;
bool updated = true;
Texture(const SamplerConfig& samplerConfig = SamplerConfig::DEFAULT, bool placeholder = false)
Texture(const SamplerConfig* samplerConfig = &SamplerConfig::DEFAULT, bool placeholder = false)
: m_samplerConfig(samplerConfig)
{ if (placeholder) MakePlaceholder(); }