[D3D12] Point sprites and color exponent bias

This commit is contained in:
Triang3l
2018-08-27 12:35:44 +03:00
parent 1818905366
commit 6d48b856b9
8 changed files with 162 additions and 38 deletions

View File

@@ -0,0 +1,34 @@
#ifndef XENIA_GPU_D3D12_SHADERS_XENOS_DRAW_HLSLI_
#define XENIA_GPU_D3D12_SHADERS_XENOS_DRAW_HLSLI_
cbuffer XeSystemConstants : register(b0) {
// vec4 0
float3 xe_mul_rcp_w;
uint xe_vertex_base_index;
// vec4 1
float3 xe_ndc_scale;
uint xe_vertex_index_endian;
// vec4 2
float3 xe_ndc_offset;
float xe_pixel_half_pixel_offset;
// vec4 3
float2 xe_point_size;
float2 xe_ssaa_inv_scale;
// vec4 4
uint xe_pixel_pos_reg;
int xe_alpha_test;
float2 xe_alpha_test_range;
// vec4 5
float4 xe_color_exp_bias;
// vec4 6
uint4 xe_color_output_map;
};
struct XeVertex {
float4 interpolators[16] : TEXCOORD0;
float2 point_coord : TEXCOORD16;
float4 position : SV_Position;
float point_size : PSIZE;
};
#endif // XENIA_GPU_D3D12_SHADERS_XENOS_DRAW_HLSLI_