Update texture sampler config handling
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user