More debug label changes
This commit is contained in:
parent
c92054e31b
commit
e9bb4bc82c
2 changed files with 4 additions and 2 deletions
|
@ -390,7 +390,7 @@ void SceneCapture::render(GFXCommandBuffer* command_buffer, Scene* scene) {
|
||||||
|
|
||||||
void SceneCapture::createSkyResources() {
|
void SceneCapture::createSkyResources() {
|
||||||
GFXGraphicsPipelineCreateInfo pipelineInfo = {};
|
GFXGraphicsPipelineCreateInfo pipelineInfo = {};
|
||||||
pipelineInfo.label = "Sky";
|
pipelineInfo.label = "Sky Scene Capture";
|
||||||
pipelineInfo.render_pass = renderPass;
|
pipelineInfo.render_pass = renderPass;
|
||||||
|
|
||||||
pipelineInfo.shaders.vertex_path = "sky.vert";
|
pipelineInfo.shaders.vertex_path = "sky.vert";
|
||||||
|
@ -401,7 +401,7 @@ void SceneCapture::createSkyResources() {
|
||||||
};
|
};
|
||||||
|
|
||||||
pipelineInfo.shader_input.push_constants = {
|
pipelineInfo.shader_input.push_constants = {
|
||||||
{sizeof(Matrix4x4) + sizeof(Vector4) + sizeof(float), 0}
|
{(sizeof(Matrix4x4) + sizeof(Vector4) + sizeof(float)), 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
pipelineInfo.depth.depth_mode = GFXDepthMode::LessOrEqual;
|
pipelineInfo.depth.depth_mode = GFXDepthMode::LessOrEqual;
|
||||||
|
|
|
@ -60,6 +60,7 @@ void DebugPass::initialize() {
|
||||||
{
|
{
|
||||||
// render pass
|
// render pass
|
||||||
GFXRenderPassCreateInfo renderPassInfo = {};
|
GFXRenderPassCreateInfo renderPassInfo = {};
|
||||||
|
renderPassInfo.label = "Select";
|
||||||
renderPassInfo.attachments.push_back(GFXPixelFormat::R8G8B8A8_UNORM);
|
renderPassInfo.attachments.push_back(GFXPixelFormat::R8G8B8A8_UNORM);
|
||||||
renderPassInfo.attachments.push_back(GFXPixelFormat::DEPTH_32F);
|
renderPassInfo.attachments.push_back(GFXPixelFormat::DEPTH_32F);
|
||||||
|
|
||||||
|
@ -99,6 +100,7 @@ void DebugPass::initialize() {
|
||||||
{
|
{
|
||||||
// render pass
|
// render pass
|
||||||
GFXRenderPassCreateInfo renderPassInfo = {};
|
GFXRenderPassCreateInfo renderPassInfo = {};
|
||||||
|
renderPassInfo.label = "Sobel";
|
||||||
renderPassInfo.attachments.push_back(GFXPixelFormat::R8_UNORM);
|
renderPassInfo.attachments.push_back(GFXPixelFormat::R8_UNORM);
|
||||||
|
|
||||||
sobelRenderPass = engine->get_gfx()->create_render_pass(renderPassInfo);
|
sobelRenderPass = engine->get_gfx()->create_render_pass(renderPassInfo);
|
||||||
|
|
Reference in a new issue