[GPU] XeSL swap shaders

This commit is contained in:
Triang3l
2022-06-24 23:24:30 +03:00
parent b7737d70ca
commit 7a4732e14f
42 changed files with 3977 additions and 882 deletions

View File

@@ -0,0 +1,26 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2022 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include "../../ui/shaders/xesl.xesli"
// A clockwise triangle covering the whole viewport.
xesl_entry_outputs_begin
xesl_entry_output_position
xesl_entry_outputs_end_stageInputs_begin
xesl_entry_stageInputs_end_bindings_begin_vertex
xesl_entry_bindings_empty_end_inputs_begin
xesl_entry_input_vertexID
xesl_entry_inputs_end_code_begin
xesl_Position = xesl_float4(
xesl_float2((xesl_uint_x2(xesl_VertexID) >> xesl_uint2(0u, 1u)) & 1u) *
xesl_float2(4.0, 4.0 * XESL_Y_SCREEN_DIRECTION) +
xesl_float2(-1.0, -XESL_Y_SCREEN_DIRECTION),
0.0, 1.0);
xesl_entry_code_end