[GPU] XeSL swap shaders
This commit is contained in:
26
src/xenia/gpu/shaders/fullscreen_cw.vs.xesl
Normal file
26
src/xenia/gpu/shaders/fullscreen_cw.vs.xesl
Normal 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
|
||||
Reference in New Issue
Block a user