Implemented basic occlusions queries
This commit is contained in:
1 parent
52c4f11d28
commit
df7fbef8bd
20 files changed
+221
-156
No files matched your search
@@ -60,7 +60,7 @@ void ShaderCompiler::compile() {
|
||||
work.add([=]() {
|
||||
ShaderPermutation permutation = getTemplate(name);
|
||||
permutation.setPositionOnly(x);
|
||||
permutation.setViewCulling(y);
|
||||
permutation.setDepthCulling(y);
|
||||
permutation.setVertexData(vd->getTypeName());
|
||||
OPipelineLayout layout = graphics->createPipelineLayout(pass.baseLayout->getName(), pass.baseLayout);
|
||||
layout->addDescriptorLayout(vd->getVertexDataLayout());
|
||||
@@ -78,7 +78,7 @@ void ShaderCompiler::compile() {
|
||||
work.add([=]() {
|
||||
ShaderPermutation permutation = getTemplate(name);
|
||||
permutation.setPositionOnly(x);
|
||||
permutation.setViewCulling(y);
|
||||
permutation.setDepthCulling(y);
|
||||
permutation.setVertexData(vd->getTypeName());
|
||||
OPipelineLayout layout = graphics->createPipelineLayout(pass.baseLayout->getName(), pass.baseLayout);
|
||||
layout->addDescriptorLayout(vd->getVertexDataLayout());
|
||||
@@ -113,8 +113,8 @@ void ShaderCompiler::createShaders(ShaderPermutation permutation, Gfx::OPipeline
|
||||
if (permutation.positionOnly) {
|
||||
createInfo.defines["POS_ONLY"] = "1";
|
||||
}
|
||||
if (permutation.viewCulling) {
|
||||
createInfo.defines["VIEW_CULLING"] = "1";
|
||||
if (permutation.depthCulling) {
|
||||
createInfo.defines["DEPTH_CULLING"] = "1";
|
||||
}
|
||||
if (permutation.visibilityPass) {
|
||||
createInfo.defines["VISIBILITY"] = "1";
|
||||
|
||||
Reference in new issue
Block a user