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:
kd-11 2019-08-14 01:38:31 +03:00 committed by kd-11
parent 0aea33687e
commit f9aea076ae
12 changed files with 136 additions and 29 deletions

View file

@ -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;