[D3D12] Restore W and apply half-pixel offset in VS

This commit is contained in:
Triang3l
2018-07-31 17:13:44 +03:00
parent fb1051b610
commit bb045cae70
3 changed files with 47 additions and 37 deletions

View File

@@ -35,10 +35,8 @@ class HlslShaderTranslator : public ShaderTranslator {
float ndc_offset[3];
float pixel_half_pixel_offset;
// vec4 3
float vertex_half_pixel_offset[2];
uint32_t pixel_pos_reg;
// vec4 4
float ssaa_inv_scale[2];
uint32_t pixel_pos_reg;
};
enum class SRVType : uint32_t {