Add initial support for compute pipelines

This commit is contained in:
SirLynix
2022-12-24 11:54:55 +01:00
committed by Jérôme Leclercq
parent e4064997d8
commit 9578ba3ef5
57 changed files with 915 additions and 182 deletions

View 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;
}

View File

@@ -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)
{

View File

@@ -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