修复无法绘制

This commit is contained in:
Nanako 2025-02-24 00:07:08 +08:00
parent 7a01b9d897
commit 8cf46a0d9e
3 changed files with 1 additions and 2 deletions

View File

@ -352,6 +352,7 @@ def generate_graphics_pipeline(header_lines: List[str], base: str, shaders: List
" pipelineDesc.blend.targets[0].blendEnabled = true;",
" pipelineDesc.depth.testEnabled = true;",
" pipelineDesc.depth.writeEnabled = true;",
" pipelineDesc.depth.compareOp = LLGL::CompareOp::LessEqual;",
"",
" auto pipeline = renderer->CreatePipelineState(pipelineDesc);",
])

View File

@ -80,7 +80,6 @@ namespace mirage {
command_buffer->BeginRenderPass(*swap_chain); {
command_buffer->Clear(LLGL::ClearFlags::Color, {0.1f, 0.1f, 0.2f, 1.0f});
command_buffer->Clear(LLGL::ClearFlags::Depth);
command_buffer->SetPipelineState(*pipeline.pipeline_state);
command_buffer->SetResource(0, param_buffer->get_raw());

View File

@ -1,7 +1,6 @@
#include "window_manager.h"
#include <spdlog/spdlog.h>
#include <Windows.h>
namespace mirage {
void window_manager::update(const duration_type& in_delta_time) {