compiles again
This commit is contained in:
@@ -16,7 +16,7 @@ LightEnvironment::LightEnvironment(Gfx::PGraphics graphics)
|
||||
.size = sizeof(LightEnv),
|
||||
.data = (uint8*) &lightEnv,
|
||||
},
|
||||
.bDynamic = true,
|
||||
.dynamic = true,
|
||||
});
|
||||
directionalLights = graphics->createShaderBuffer(ShaderBufferCreateInfo{
|
||||
.sourceData = {
|
||||
@@ -24,7 +24,7 @@ LightEnvironment::LightEnvironment(Gfx::PGraphics graphics)
|
||||
.data = (uint8*)dirs.data(),
|
||||
},
|
||||
.stride = sizeof(Component::DirectionalLight),
|
||||
.bDynamic = true,
|
||||
.dynamic = true,
|
||||
});
|
||||
pointLights = graphics->createShaderBuffer(ShaderBufferCreateInfo{
|
||||
.sourceData = {
|
||||
@@ -32,7 +32,7 @@ LightEnvironment::LightEnvironment(Gfx::PGraphics graphics)
|
||||
.data = (uint8*)dirs.data(),
|
||||
},
|
||||
.stride = sizeof(Component::PointLight),
|
||||
.bDynamic = true,
|
||||
.dynamic = true,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -78,3 +78,13 @@ void LightEnvironment::commit()
|
||||
set->updateBuffer(1, directionalLights);
|
||||
set->updateBuffer(2, pointLights);
|
||||
}
|
||||
|
||||
const Gfx::PDescriptorLayout Seele::LightEnvironment::getDescriptorLayout() const
|
||||
{
|
||||
return layout;
|
||||
}
|
||||
|
||||
Gfx::PDescriptorSet Seele::LightEnvironment::getDescriptorSet()
|
||||
{
|
||||
return set;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user