vk_rasterizer: Implement layered clears
This commit is contained in:
parent
8baf98e439
commit
71cc772988
|
@ -399,8 +399,8 @@ void RasterizerVulkan::Clear() {
|
||||||
scissor_extent.width = std::min(scissor_extent.width, render_area.width);
|
scissor_extent.width = std::min(scissor_extent.width, render_area.width);
|
||||||
scissor_extent.height = std::min(scissor_extent.height, render_area.height);
|
scissor_extent.height = std::min(scissor_extent.height, render_area.height);
|
||||||
|
|
||||||
// TODO(Rodrigo): Implement layer clears
|
const u32 layer = regs.clear_buffers.layer;
|
||||||
const vk::ClearRect clear_rect({scissor_offset, scissor_extent}, 0, 1);
|
const vk::ClearRect clear_rect({scissor_offset, scissor_extent}, layer, 1);
|
||||||
|
|
||||||
if (use_color) {
|
if (use_color) {
|
||||||
const std::array clear_color = {regs.clear_color[0], regs.clear_color[1],
|
const std::array clear_color = {regs.clear_color[0], regs.clear_color[1],
|
||||||
|
|
Reference in New Issue