1// ---------------------------------------------------------------------------
2//  Project:  NintendoWare
3//  File:     GetTexcoordSource.vsh
4//
5//  Copyright (C)2009-2010 Nintendo Co., Ltd.  All rights reserved.
6//
7//  These coded instructions, statements, and computer programs contain
8//  proprietary information of Nintendo of America Inc. and/or Nintendo
9//  Company Ltd., and are protected by Federal copyright law.  They may
10//  not be disclosed to third parties or copied or duplicated in any form,
11//  in whole or in part, without the prior written consent of Nintendo.
12//
13//  $Revision:$
14// ---------------------------------------------------------------------------
15
16#include "ShaderConfig.h"
17#include "VertexShader.h"
18
19//-----------------------------------------------------------------------------
20// @brief        �e�N�X�`�����W�\�[�X�̎擾���܂��B
21//-----------------------------------------------------------------------------
22l_get_texcoord_source:
23    cmp     EQ, EQ,     TEMP0.xy,      CONST_1_2_2_2
24
25    ifc 0, 0, COND_MODE_AND
26        mul     TEMP_TEX.xy,       nw_texcoord0.xy,   nw_attribute_scale1._X
27    else
28        ifc 1, 0, COND_MODE_AND
29            mul     TEMP_TEX.xy,       nw_texcoord1.xy,   nw_attribute_scale1._Y
30        else
31            mul     TEMP_TEX.xy,       nw_texcoord2.xy,   nw_attribute_scale1._Z
32        endif
33        nop
34    endif
35    mov     TEMP_TEX.zw,        CONST_0_0_1_1
36    ret
37