mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
rsx: Implement depth_buffer_float support.
- Since this is transparent to the application at all time, it only becomes a problem when doing memory transfer or DEPTH->RGBA conversion in shaders.
This commit is contained in:
parent
0aea33687e
commit
f9aea076ae
12 changed files with 136 additions and 29 deletions
|
@ -42,12 +42,19 @@ namespace rsx
|
|||
transfer = 2
|
||||
};
|
||||
|
||||
enum format_type : u8
|
||||
{
|
||||
color = 0,
|
||||
depth_uint = 1,
|
||||
depth_float = 2
|
||||
};
|
||||
|
||||
//Sampled image descriptor
|
||||
struct sampled_image_descriptor_base
|
||||
{
|
||||
texture_upload_context upload_context = texture_upload_context::shader_read;
|
||||
rsx::texture_dimension_extended image_type = texture_dimension_extended::texture_dimension_2d;
|
||||
bool is_depth_texture = false;
|
||||
rsx::format_type format_class = rsx::format_type::color;
|
||||
bool is_cyclic_reference = false;
|
||||
f32 scale_x = 1.f;
|
||||
f32 scale_y = 1.f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue