Skip to content
Snippets Groups Projects
Commit 53cf2d62 authored by Lars Hoerttrich's avatar Lars Hoerttrich
Browse files

[#57] WIP: added Validation

parent ba11a7ef
No related branches found
No related tags found
1 merge request!44Resolve "Material (Modul)"
Pipeline #25621 failed
......@@ -30,14 +30,47 @@ namespace vkcv::material
}
void pbrMaterial::create(vkcv::Core core)
{
//Test if Images and samplers valid
//create default
vkcv::SamplerHandle defaultSampler = core.createSampler(
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerMipmapMode::LINEAR,
vkcv::SamplerAddressMode::REPEAT
);
//Test if Images and samplers valid, if not use default
if (m_ColorTexture) {
//TODO
}
if (m_NormalTexture) {
//TODO
}
if (m_MetRoughTexture) {
//TODO
}
if (m_ColorSampler) {
/*
m_ColorSampler = core.createSampler(
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerMipmapMode::LINEAR,
vkcv::SamplerAddressMode::REPEAT
);//only non const member
*/
}
if (m_NormalSampler) {
/*
m_NormalSampler = core.createSampler(
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerMipmapMode::LINEAR,
vkcv::SamplerAddressMode::REPEAT
); //only non const member
*/
}
if (m_MetRoughSampler) {
/*
m_MetRoughSampler = core.createSampler(
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerFilterType::LINEAR,
vkcv::SamplerMipmapMode::LINEAR,
vkcv::SamplerAddressMode::REPEAT
); //only non const member
*/
}
//create descriptorset
vkcv::DescriptorSetHandle descriptorSet = core.createDescriptorSet(getDescriptorBindings());
//writes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment