1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- ShaderResourceGroupSemantic SRG_Frequency0
- {
- FrequencyId = 0;
- };
- ShaderResourceGroup DrawSRG : SRG_Frequency0
- {
- row_major float4x4 m_matrix;
- float4 m_color;
- };
- struct VSInput
- {
- float4 m_position : POSITION;
- };
- struct VSOutput
- {
- float4 m_position : SV_Position;
- };
- VSOutput MainVS(VSInput vsInput)
- {
- VSOutput OUT;
- OUT.m_position = mul(DrawSRG::m_matrix, vsInput.m_position);
- return OUT;
- }
- struct PSOutput
- {
- float4 m_color : SV_Target0;
- };
- PSOutput MainPS(VSOutput psInput)
- {
- PSOutput OUT;
- OUT.m_color = DrawSRG::m_color;
- return OUT;
- }
|