Add initial support for compute pipelines
This commit is contained in:
committed by
Jérôme Leclercq
parent
e4064997d8
commit
9578ba3ef5
11
src/Nazara/Renderer/ComputePipeline.cpp
Normal file
11
src/Nazara/Renderer/ComputePipeline.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Renderer module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/ComputePipeline.hpp>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
ComputePipeline::~ComputePipeline() = default;
|
||||
}
|
||||
@@ -83,7 +83,7 @@ namespace Nz
|
||||
return;
|
||||
|
||||
builder.BindShaderBinding(0, *m_currentViewerData.binding);
|
||||
builder.BindPipeline(*m_renderPipeline);
|
||||
builder.BindRenderPipeline(*m_renderPipeline);
|
||||
|
||||
for (auto& drawCall : m_drawCalls)
|
||||
{
|
||||
|
||||
@@ -42,9 +42,14 @@ namespace Nz
|
||||
}
|
||||
|
||||
NzValidateFeature(anisotropicFiltering, "anistropic filtering feature")
|
||||
NzValidateFeature(computeShaders, "compute shaders feature")
|
||||
NzValidateFeature(depthClamping, "depth clamping feature")
|
||||
NzValidateFeature(nonSolidFaceFilling, "non-solid face filling feature")
|
||||
NzValidateFeature(storageBuffers, "storage buffers support")
|
||||
NzValidateFeature(textureRead, "texture read")
|
||||
NzValidateFeature(textureReadWithoutFormat, "texture read without format")
|
||||
NzValidateFeature(textureWrite, "texture write")
|
||||
NzValidateFeature(textureWriteWithoutFormat, "texture write without format")
|
||||
NzValidateFeature(unrestrictedTextureViews, "unrestricted texture view support")
|
||||
|
||||
#undef NzValidateFeature
|
||||
|
||||
Reference in New Issue
Block a user