Update graphics API

This commit is contained in:
2026-06-24 23:32:16 +02:00
parent 49b5a2e912
commit 11a226952c
45 changed files with 115 additions and 129 deletions
+2 -2
View File
@@ -686,7 +686,7 @@ void DebugDrawService::Update()
if (DebugDrawPsWireTrianglesDepthTest.Depth == nullptr && DebugDrawShader && DebugDrawShader->IsLoaded())
{
bool failed = false;
const auto shader = DebugDrawShader->GetShader();
const auto shader = DebugDrawShader->GPU;
// Create pipeline states
GPUPipelineState::Description desc = GPUPipelineState::Description::Default;
@@ -855,7 +855,7 @@ void DebugDraw::Draw(RenderContext& renderContext, GPUTextureView* target, GPUTe
}
// Update constant buffer
const auto cb = DebugDrawShader->GetShader()->GetCB(0);
const auto cb = DebugDrawShader->GPU->GetCB(0);
ShaderData data;
Matrix vp;
Matrix::Multiply(view.View, view.Projection, vp);