mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
vulkan: Implement overlay shader passes
- Implements vk::overlay_pass and vk::depth_convert_pass - Also added a sanity check in RSX core for depth replace shaders
This commit is contained in:
parent
680ca1d12a
commit
ccc0383f75
6 changed files with 462 additions and 85 deletions
|
@ -1417,6 +1417,16 @@ namespace rsx
|
|||
}
|
||||
|
||||
result.set_texture_dimension(texture_dimensions);
|
||||
|
||||
//Sanity checks
|
||||
if (result.ctrl & CELL_GCM_SHADER_CONTROL_DEPTH_EXPORT)
|
||||
{
|
||||
//Check that the depth stage is not disabled
|
||||
if (!rsx::method_registers.depth_test_enabled())
|
||||
{
|
||||
LOG_ERROR(RSX, "FS exports depth component but depth test is disabled (INVALID_OPERATION)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void thread::get_current_fragment_program_legacy(std::function<std::tuple<bool, u16>(u32, fragment_texture&, bool)> get_surface_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue