修复无法绘制
This commit is contained in:
parent
7a01b9d897
commit
8cf46a0d9e
@ -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);",
|
||||
])
|
||||
|
@ -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());
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user