Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 29) sorted by relevance

12

/CTR-SDK-0.14.23/CTR_SDK-0_14_23-20110107-en/CTR_SDK/sources/libraries/gr/CTR/
Dgr_Texture.cpp25 bit32* Texture::Unit0::MakeCommand( bit32* command, bool is_update_texture_func ) const in MakeCommand() argument
29 command = m_Texture.MakeFuncCommand( command ); in MakeCommand()
33 … *command++ = borderColorR | borderColorG << 8 | borderColorB << 16 | borderColorA << 24; in MakeCommand()
34 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_TEXTURE0_BORDER_COLOR ); in MakeCommand()
37 *command++ = PICA_CMD_DATA_TEXTURE_SIZE( width, height ); in MakeCommand()
38 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_TEXTURE0_SIZE ); in MakeCommand()
47 …*command++ = PICA_CMD_DATA_TEXTURE_WRAP_FILTER( magFilter, minFilter, format, wrapT, wrapS, useSha… in MakeCommand()
48 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_TEXTURE0_WRAP_FILTER ); in MakeCommand()
55 …*command++ = PICA_CMD_DATA_TEXTURE_LOD_LEVEL( Float32ToFix13Fraction8( lodBias ), maxLodLevel, min… in MakeCommand()
56 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_TEXTURE0_LOD ); in MakeCommand()
[all …]
Dgr_RenderState.cpp25 bit32* RenderState::Culling::MakeCommand( bit32* command, bool isUpdateFBAccess ) const in MakeCommand() argument
43 *command++ = culling; in MakeCommand()
44 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_CULL_FACE ); in MakeCommand()
46 return isUpdateFBAccess ? m_RenderState.fbAccess.MakeCommand( command ) : command; in MakeCommand()
51 bit32* RenderState::Blend::MakeCommand( bit32* command, bool isUpdateFBAccess ) const in MakeCommand() argument
56 … *command++ = PICA_CMD_DATA_COLOR_OPERATION( PICA_DATA_FRAGOP_MODE_DMP, PICA_DATA_ENABLE_BLEND ); in MakeCommand()
57 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_COLOR_OPERATION, 0x3 ); in MakeCommand()
60 …*command++ = PICA_CMD_DATA_BLEND_FUNC_SEPARATE( eqRgb, eqAlpha, srcRgb, dstRgb, srcAlpha, dstAlpha… in MakeCommand()
61 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_BLEND_FUNC ); in MakeCommand()
64 *command++ = PICA_CMD_DATA_LOGIC_OP( PICA_DATA_LOGIC_NOOP ); in MakeCommand()
[all …]
Dgr_FragmentLight.cpp25 bit32* FragmentLight::Source::MakeCommand( bit32* command ) const in MakeCommand()
29 *command++ = specular0B | specular0G << 10 | specular0R << 20; // specular0 in MakeCommand()
30 *command++ = PICA_CMD_HEADER_BURSTSEQ( reg, 12 ); // header in MakeCommand()
31 *command++ = specular1B | specular1G << 10 | specular1R << 20; // specular1 in MakeCommand()
32 *command++ = diffuseB | diffuseG << 10 | diffuseR << 20; // diffuse in MakeCommand()
33 *command++ = ambientB | ambientG << 10 | ambientR << 20; // ambient in MakeCommand()
34 *command++ = posXY; in MakeCommand()
35 *command++ = posZ; in MakeCommand()
36 *command++ = spotDirectionXY; in MakeCommand()
37 *command++ = spotDirectionZ; in MakeCommand()
[all …]
Dgr_Shader.cpp104 bit32* Shader::MakeFullCommand( bit32* command ) const in MakeFullCommand()
107 command = MakePrepareCommand( command ); in MakeFullCommand()
112 command = MakeGeoProgramCommand( command ); in MakeFullCommand()
113 command = MakeGeoSwizzleCommand( command ); in MakeFullCommand()
114 command = MakeGeoConstRgCommand( command ); in MakeFullCommand()
115 command = MakeGeoBoolMapCommand( command ); in MakeFullCommand()
119 command = MakeVtxProgramCommand( command ); in MakeFullCommand()
120 command = MakeVtxSwizzleCommand( command ); in MakeFullCommand()
121 command = MakeVtxConstRgCommand( command ); in MakeFullCommand()
122 command = MakeVtxBoolMapCommand( command ); in MakeFullCommand()
[all …]
Dgr_Viewport.cpp26 bit32* Viewport::MakeCommand( bit32* command ) in MakeCommand() argument
35 *command++ = width24; in MakeCommand()
36 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_VIEWPORT_WIDTH1, 0x7 ); in MakeCommand()
38 *command++ = width31; in MakeCommand()
39 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_VIEWPORT_WIDTH2 ); in MakeCommand()
41 *command++ = height24; in MakeCommand()
42 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_VIEWPORT_HEIGHT1, 0x7 ); in MakeCommand()
44 *command++ = height31; in MakeCommand()
45 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_VIEWPORT_HEIGHT2 ); in MakeCommand()
47 *command++ = PICA_CMD_DATA_VIEWPORT_XY( x, y ); in MakeCommand()
[all …]
Dgr_Vertex.cpp29 bit32* Vertex::MakeDrawCommand( bit32* command, const IndexStream& index_stream ) const in MakeDrawCommand() argument
35 *command++ = 0x1; in MakeDrawCommand()
37 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_START_DRAW_FUNC1 ); in MakeDrawCommand()
40 *command++ = fmt | addr; in MakeDrawCommand()
42 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_INDEX_ARRAY_ADDR_OFFSET ); in MakeDrawCommand()
45 *command++ = index_stream.drawVtxNum; in MakeDrawCommand()
47 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_DRAW_VERTEX_NUM ); in MakeDrawCommand()
48 *command++ = 0x00000000; in MakeDrawCommand()
50 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_START_DRAW_FUNC0, 0x1 ); in MakeDrawCommand()
53 *command++ = 0x00000001; in MakeDrawCommand()
[all …]
Dgr_FrameBuffer.cpp25 bit32* FrameBuffer::ColorBuffer::MakeCommand( bit32* command ) const in MakeCommand()
30 *command++ = in MakeCommand()
36 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_RENDER_BUFFER_COLOR_MODE ); in MakeCommand()
40 … *command++ = PICA_CMD_DATA_RENDER_BUFFER_COLOR_ADDR( nngxGetPhysicalAddr( virtualAddr ) ); in MakeCommand()
41 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_RENDER_BUFFER_COLOR_ADDR ); in MakeCommand()
43 return command; in MakeCommand()
48 bit32* FrameBuffer::DepthStencilBuffer::MakeCommand( bit32* command ) const in MakeCommand()
52 *command++ = PICA_CMD_DATA_RENDER_BUFFER_DEPTH_MODE( format ); in MakeCommand()
53 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_RENDER_BUFFER_DEPTH_MODE ); in MakeCommand()
57 … *command++ = PICA_CMD_DATA_RENDER_BUFFER_DEPTH_ADDR( nngxGetPhysicalAddr( virtualAddr ) ); in MakeCommand()
[all …]
Dgr_LookUpTable.cpp27 bit32* command = m_TableCommand; in SetTable() local
30 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable()
31 *command++ = PICA_CMD_HEADER_BURST( PICA_REG_FRAG_LIGHT_LUT_DATA0, 128 ); in SetTable()
35 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable()
37 *command++ = 0; in SetTable()
39 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable()
40 *command++ = PICA_CMD_HEADER_BURST( PICA_REG_FRAG_LIGHT_LUT_DATA0, 128 ); in SetTable()
44 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable()
47 *command++ = Float32ToUnsignedFix12( table[ i ] ); in SetTable()
48 *command++ = 0; in SetTable()
Dgr_ProcedureTexture.cpp132 bit32* ProcedureTexture::MakeTableCommand( bit32* command ) const in MakeTableCommand()
136 … std::memcpy( command, m_NoiseLookUpTableCommand, sizeof( m_NoiseLookUpTableCommand ) ); in MakeTableCommand()
137 command += PROCTEX_LOOKUP_TABLE_CMD_NUM; in MakeTableCommand()
140 … std::memcpy( command, m_RgbMapLookUpTableCommand, sizeof( m_RgbMapLookUpTableCommand ) ); in MakeTableCommand()
141 command += PROCTEX_LOOKUP_TABLE_CMD_NUM; in MakeTableCommand()
145 … std::memcpy( command, m_AlphaMapLookUpTableCommand, sizeof( m_AlphaMapLookUpTableCommand ) ); in MakeTableCommand()
146 command += PROCTEX_LOOKUP_TABLE_CMD_NUM; in MakeTableCommand()
149 … std::memcpy( command, m_ColorLookUpTableCommand, sizeof( m_ColorLookUpTableCommand ) ); in MakeTableCommand()
150 command += PROCTEX_COLOR_LOOKUP_TABLE_CMD_NUM; in MakeTableCommand()
152 … std::memcpy( command, m_ColorDiffLookUpTableCommand, sizeof( m_ColorDiffLookUpTableCommand ) ); in MakeTableCommand()
[all …]
Dgr_Fog.cpp27 bit32* command = m_TableCommand; in SetTable() local
30 *command++ = PICA_CMD_DATA_FOG_LUT_INDEX( 0 ); in SetTable()
31 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_FOG_LUT_INDEX ); in SetTable()
35 …*command++ = Float32ToUnsignedFix11( table[ i ] ) << 13 | Float32ToFix13Fraction11( table[ i + 1 ]… in SetTable()
36 *command++ = PICA_CMD_HEADER_BURST( PICA_REG_FOG_LUT_DATA0, 128 ); in SetTable()
40 *command++ = Float32ToUnsignedFix11( table[ i ] ) << 13 | in SetTable()
44 *command++ = Float32ToUnsignedFix11( table[ i ] ) << 13; in SetTable()
45 *command++ = 0; in SetTable()
Dgr_Scissor.cpp25 bit32* Scissor::MakeCommand( bit32* command ) in MakeCommand() argument
30 *command++ = PICA_CMD_DATA_SCISSOR( isEnable ); in MakeCommand()
31 *command++ = PICA_CMD_HEADER_BURSTSEQ( PICA_REG_SCISSOR, 3 ); in MakeCommand()
32 *command++ = PICA_CMD_DATA_SCISSOR_XY( x, y, bufferWidth, bufferHeight ); in MakeCommand()
33 *command++ = PICA_CMD_DATA_SCISSOR_SIZE( temp_width, temp_height ); in MakeCommand()
35 return command; in MakeCommand()
Dgr_Combiner.cpp25 bit32* Combiner::MakeCommand( bit32* command ) const in MakeCommand()
29 command = stage[ stage_index ].MakeCommand( command ); in MakeCommand()
32 return MakeCombinerBufferCommand( command ); in MakeCommand()
37 bit32* Combiner::MakeCombinerBufferCommand( bit32* command ) const in MakeCombinerBufferCommand()
40 *command++ =PICA_CMD_SET_TEX_ENV_BUFFER_INPUT( in MakeCombinerBufferCommand()
45 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_TEX_ENV_BUFFER_INPUT, 0x2 ); in MakeCombinerBufferCommand()
48 … *command++ = bufferColorR | bufferColorG << 8 | bufferColorB << 16 | bufferColorA << 24; in MakeCombinerBufferCommand()
49 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_TEX_ENV_BUFFER_COLOR ); in MakeCombinerBufferCommand()
50 return command; in MakeCombinerBufferCommand()
55 bit32* Combiner::Stage::MakeCommand( bit32* command ) const in MakeCommand()
[all …]
/CTR-SDK-0.14.23/CTR_SDK-0_14_23-20110107-en/CTR_SDK/include/nn/gr/CTR/
Dgr_Shadow.h53 …bit32* MakeCommand( bit32* command, bool isAddDummyCommand = true, bool isAddCacheClearCommand = t…
55 command = MakeTextureCommand( command, isAddDummyCommand );
56 command = MakeAttenuationCommand( command, isAddCacheClearCommand );
58 return command;
69 bit32* MakeTextureCommand( bit32* command, bool isAddDummyCommand = true )
74 *command++ = 0x0;
75 *command++ = PICA_CMD_HEADER_BURST_BE( PICA_REG_TEXTURE_FUNC, 0x3, 0x0 );
77 *command++ = 0x0;
78 *command++ = 0x0;
87 *command++ =
[all …]
Dgr_Vertex.h155 bit32* MakeEnableAttrCommand( bit32* command ) const in MakeEnableAttrCommand() argument
163 std::memcpy( command, m_CmdCacheVertex, m_CmdCacheVertexNum * sizeof( bit32 ) ); in MakeEnableAttrCommand()
164 return command + m_CmdCacheVertexNum; in MakeEnableAttrCommand()
175 bit32* MakeDrawCommand( bit32* command, const IndexStream& index_stream ) const;
184 bit32* MakeDisableAttrCommand( bit32* command ) const in MakeDisableAttrCommand() argument
192 *command++ = 0; in MakeDisableAttrCommand()
193 *command++ = in MakeDisableAttrCommand()
196 *command++ = 0; in MakeDisableAttrCommand()
200 *command++ = 0; in MakeDisableAttrCommand()
204 *command++ = 0; in MakeDisableAttrCommand()
[all …]
Dgr_ProcedureTexture.h324 bit32* MakeAllCommand( bit32* command, bool isAddDummyCommand = true ) const
327 command = MakeConfigCommand( command, isAddDummyCommand );
330 command = MakeTableCommand( command );
332 return command;
344 bit32* MakeConfigCommand( bit32* command, bool isAddDummyCommand = true ) const
346 command = MakeProcedureTextureModeCommand( command, isAddDummyCommand );
347 command = MakeTextureCommand( command, false, false );
348 command = MakeNoiseCommand( command, false, false );
350 return command;
361 … bit32* MakeProcedureTextureModeCommand( bit32* command, bool isAddDummyCommand = true ) const
[all …]
Dgr_Utility.h70 … inline bit32* MakeUniformCommandVS( bit32* command, u8 location, const nn::math::MTX34& mtx34 ) in MakeUniformCommandVS() argument
72 *command++ = 0x80000000 | location; in MakeUniformCommandVS()
73 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_VS_FLOAT_ADDR ); in MakeUniformCommandVS()
74 CopyMtx34WithHeader( (f32*)command, &mtx34, PICA_CMD_HEADER_VS_F32( 3 ) ); in MakeUniformCommandVS()
75 return command + 14; in MakeUniformCommandVS()
89 … inline bit32* MakeUniformCommandVS( bit32* command, u8 location, const nn::math::MTX44& mtx44 ) in MakeUniformCommandVS() argument
91 *command++ = 0x80000000 | location; in MakeUniformCommandVS()
92 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_VS_FLOAT_ADDR ); in MakeUniformCommandVS()
93 CopyMtx44WithHeader( (f32*)command, &mtx44, PICA_CMD_HEADER_VS_F32( 4 ) ); in MakeUniformCommandVS()
94 return command + 18; in MakeUniformCommandVS()
[all …]
Dgr_Fog.h87 bit32* MakeAllCommand( bit32* command ) const in MakeAllCommand() argument
89 command = MakeConfigCommand( command ); // 設定用コマンド in MakeAllCommand()
90 if ( isEnable ) command = MakeTableCommand( command ); // フォグの参照テーブルコマンド in MakeAllCommand()
91 return command; in MakeAllCommand()
101 bit32* MakeConfigCommand( bit32* command ) const in MakeConfigCommand() argument
104 …*command++ = ( isEnable ? PICA_DATA_FOG : PICA_DATA_FOG_FALSE ) | ( ( isEnableZFlip ? 1 : 0 ) << 1… in MakeConfigCommand()
105 *command++ = PICA_CMD_HEADER_SINGLE_BE( PICA_REG_GAS_FOG_MODE, 0x5 ); in MakeConfigCommand()
108 *command++ = colorR | colorG << 8 | colorB << 16; in MakeConfigCommand()
109 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_FOG_COLOR ); in MakeConfigCommand()
111 return command; in MakeConfigCommand()
[all …]
Dgr_Shader.h95 bit32* MakeFullCommand( bit32* command ) const;
106 bit32* MakeVtxBoolMapCommand( bit32* command ) const in MakeVtxBoolMapCommand() argument
108 *command++ = 0x7fff0000 | m_VtxShaderBoolMapUniform; in MakeVtxBoolMapCommand()
109 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_VS_BOOL ); // 0x2b0 in MakeVtxBoolMapCommand()
110 return command; in MakeVtxBoolMapCommand()
120 bit32* MakeGeoBoolMapCommand( bit32* command ) const in MakeGeoBoolMapCommand() argument
122 *command++ = 0x7fff0000 | m_GeoShaderBoolMapUniform; in MakeGeoBoolMapCommand()
123 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_GS_BOOL ); // 0x280 in MakeGeoBoolMapCommand()
124 return command; in MakeGeoBoolMapCommand()
135 bit32* MakePrepareCommand( bit32* command ) const;
[all …]
Dgr_BindSymbol.h147 bit32* MakeUniformCommand( bit32* command, const nn::math::MTX34& mtx34 ) const in MakeUniformCommand() argument
149 return MakeUniformCommandVS( command, start, mtx34 ); in MakeUniformCommand()
160 bit32* MakeUniformCommand( bit32* command, const nn::math::MTX44& mtx44 ) const in MakeUniformCommand() argument
162 return MakeUniformCommandVS( command, start, mtx44 ); in MakeUniformCommand()
173 bit32* MakeUniformCommand( bit32* command, const nn::math::VEC4& vec4 ) const in MakeUniformCommand() argument
175 return MakeUniformCommandVS( command, start, vec4 ); in MakeUniformCommand()
188 … bit32* MakeUniformCommand( bit32* command, const nn::math::VEC4 vec4[], const int num ) const in MakeUniformCommand() argument
190 return MakeUniformCommandVS( command, start, vec4, num ); in MakeUniformCommand()
215 bit32* MakeUniformCommand( bit32* command, u8 x, u8 y, u8 z ) const in MakeUniformCommand() argument
217 return MakeUniformCommandVS( command, start, x, y, z ); in MakeUniformCommand()
[all …]
Dgr_LookUpTable.h63 bit32* MakeCommand( bit32* command, const PicaDataFragLightSampler type ) const in MakeCommand() argument
66 *command++ = PICA_CMD_DATA_FRAG_LIGHT_LUT( 0, type ); in MakeCommand()
67 *command++ = PICA_CMD_HEADER_SINGLE( PICA_REG_FRAG_LIGHT_LUT ); in MakeCommand()
69 std::memcpy( command, m_TableCommand, sizeof( m_TableCommand ) ); in MakeCommand()
71 return command + ( LOOKUP_TABLE_ELEMENT_NUM + 4 ); in MakeCommand()
82 bit32* MakeSpotTableCommand( bit32* command, u8 light_id ) const in MakeSpotTableCommand() argument
84 …return MakeCommand( command, static_cast< PicaDataFragLightSampler >( PICA_DATA_SAMPLER_SP + light… in MakeSpotTableCommand()
95 bit32* MakeDistAttnTableCommand( bit32* command, u8 light_id ) const in MakeDistAttnTableCommand() argument
97 …return MakeCommand( command, static_cast< PicaDataFragLightSampler >( PICA_DATA_SAMPLER_DA + light… in MakeDistAttnTableCommand()
Dgr_RenderState.h114 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
321 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
386 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
534 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
603 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
687 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
770 bit32* MakeCommand( bit32* command, bool isUpdateFBAccess = true ) const;
804 bit32* MakeCommand( bit32* command, bool isClearFrameBufferCache = true ) const;
904 bit32* MakeCommand( bit32* command, bool isClearFrameBufferCache = true ) const;
Dgr_Texture.h312 bit32* MakeCommand( bit32* command, bool is_update_texture_func = true ) const;
353 bit32* MakeCommand( bit32* command, bool is_update_texture_func = true ) const;
408 bit32* MakeCommand( bit32* command, bool is_update_texture_func = true ) const;
465 bit32* MakeCommand( bit32* command, bool is_update_texture_func = true ) const;
517 bit32* MakeCommand( bit32* command, bool isAddDummyCommand = true ) const;
527 bit32* MakeFuncCommand( bit32* command, bool isAddDummyCommand = true ) const;
Dgr_FrameBuffer.h109 bit32* MakeCommand( bit32* command ) const;
172 bit32* MakeCommand( bit32* command ) const;
218 static bit32* MakeClearCacheCommand( bit32* command );
232 … bit32* MakeCommand( bit32* command, const u32 bufferBit, bool isClearCache = true ) const;
Dgr_Combiner.h284 bit32* MakeCommand( bit32* command ) const;
354 bit32* MakeCommand( bit32* command ) const;
364 bit32* MakeCombinerBufferCommand( bit32* command ) const;
Dgr_FragmentLight.h317 bit32* MakeCommand( bit32* command ) const;
655 bit32* MakeLightSourceCommand( bit32* command ) const;
664 bit32* MakeLutConfigCommand( bit32* command ) const;
674 bit32* MakeLightEnvCommand( bit32* command, bool isAddDummyCommand = true ) const;
684 bit32* MakeAllCommand( bit32* command, bool isAddDummyCommand = true ) const;

12