Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 49) sorted by relevance

12

/CTR-SDK-2.4.0/include/nn/gr/CTR/
Dgr_Vertex.h57 for ( u32 index = 0; index < VERTEX_ATTRIBUTE_MAX; index++ ) in InterleaveInfo() local
60 dataType[ index ] = PICA_DATA_SIZE_1_BYTE; in InterleaveInfo()
63 for ( u32 index = 0; index < VERTEX_ATTRIBUTE_MAX; index++ ) in InterleaveInfo() local
66 symbol[ index ] = NULL; in InterleaveInfo()
193 for ( int index = 0; index < VERTEX_ATTRIBUTE_MAX; ++index ) in MakeDisableAttrCommand() local
196 if ( m_LoadArray[ index ].IsEnable() ) in MakeDisableAttrCommand()
201 … PICA_CMD_HEADER_BURSTSEQ( PICA_REG_LOAD_ARRAY0_ATTR_OFFSET + 3 * index, 0x3 ); in MakeDisableAttrCommand()
215 PICA_CMD_HEADER_SINGLE( PICA_REG_LOAD_ARRAY0_ELEMENT1 + 3 * index ); in MakeDisableAttrCommand()
219 if ( m_AttrConst[ index ].IsEnable() ) in MakeDisableAttrCommand()
221 *command++ = index; in MakeDisableAttrCommand()
[all …]
Dgr_Fog.h160 for ( u32 index = 0; index < ( FOG_LOOKUP_TABLE_ELEMENT_NUM + 4 ); index++ ) in Fog() local
162 m_TableCommand[ index ] = 0; in Fog()
/CTR-SDK-2.4.0/include/nn/ro/
Dro_SectionTable.h61 const nn::drivers::ro::SectionInfo* GetSection(int index) const in GetSection() argument
63 if( (0 <= index) && (index < m_NumSections) ) in GetSection()
65 return &m_pSectionTable[index]; in GetSection()
88 uptr GetAddress(int index, u32 offset) const in GetAddress() argument
90 if( ! ((0 <= index) && (index < m_NumSections)) ) in GetAddress()
95 const nn::drivers::ro::SectionInfo& section = m_pSectionTable[index]; in GetAddress()
122 uptr GetReferedAddress(int index, u32 offset) const in GetReferedAddress() argument
124 if( ! ((0 <= index) && (index < m_NumSections)) ) in GetReferedAddress()
129 const nn::drivers::ro::SectionInfo& section = m_pSectionTable[index]; in GetReferedAddress()
155 T GetPointer(int index, u32 offset) const in GetPointer() argument
[all …]
/CTR-SDK-2.4.0/sources/libraries/gr/CTR/
Dgr_ProcedureTexture.cpp171 u32 index = 0; in SetLookUpDualTables_() local
174 *command++ = Float32ToUnsignedFix12( lookUpTable[ index ] ) | in SetLookUpDualTables_()
175 ( Float32ToFix12Fraction11( diffLookUpTable[ index ] ) << 12 ); in SetLookUpDualTables_()
179 for ( index = 1; index < 0x80; index++ ) in SetLookUpDualTables_()
183 *command++ = Float32ToUnsignedFix12( lookUpTable[ index ] ) | in SetLookUpDualTables_()
184 ( Float32ToFix12Fraction11( diffLookUpTable[ index ] ) << 12 ); in SetLookUpDualTables_()
214 u32 index = 0; in SetColorLookUpTable_() local
220 *command++ |= ( FloatToUnsignedByte( lookUpTable[ index ] ) << colorShiftNum ); in SetColorLookUpTable_()
221 index++; in SetColorLookUpTable_()
230 … *command++ |= ( FloatToUnsignedByte( lookUpTable[ index ] ) << colorShiftNum ); in SetColorLookUpTable_()
[all …]
Dgr_Shader.cpp422 u16 index; in MakeConstRgCommand_() member
439 *boolMap |= ( info.value[ 0 ] << info.index ) & ( 1 << info.index ); in MakeConstRgCommand_()
444 *command++ = PICA_CMD_HEADER_SINGLE( reg_integer + info.index ); in MakeConstRgCommand_()
448 *command++ = info.index; in MakeConstRgCommand_()
492 u16 index; in MakeOutAttrCommand_() member
550 … outmap_buffer[ outMapBufferCount ].index = outMapBufferCount; in MakeOutAttrCommand_()
571 outmap_buffer[ outMapBufferCount ].index = outMapBufferCount; in MakeOutAttrCommand_()
587 outmap_buffer[ outMapBufferCount ].index = outMapBufferCount; in MakeOutAttrCommand_()
607 for ( s32 index = 0; index < OUT_ATTR_INDEX_MAX; ++index ) in MakeOutAttrCommand_() local
609 attr[ index ] = 0x1f1f1f1f; in MakeOutAttrCommand_()
[all …]
Dgr_Vertex.cpp67 for ( u32 index = 0; index < 2; index++ ) in MakeDrawCommand() local
236 for ( u32 index = 0; index < VERTEX_ATTRIBUTE_MAX; ++index ) in CheckDisable() local
238 if ( bind[ index ] != -1 ) in CheckDisable()
246 for ( u32 index = 0; index < VERTEX_ATTRIBUTE_MAX; ++index ) in CheckDisable() local
248 byte[ index ] = 0; in CheckDisable()
258 for ( u32 index = 0; index < VERTEX_ATTRIBUTE_MAX; index++ ) in DisableAll() local
261 type[ index ] = PICA_DATA_SIZE_1_BYTE; in DisableAll()
263 byte[ index ] = 0; in DisableAll()
265 bind[ index ] = -1; in DisableAll()
Dgr_FrameBuffer.cpp112 for (u32 index = 0; index < 4; index++) in ColorBuffer() local
114 clearColor[ index ] = 0.0f; in ColorBuffer()
/CTR-SDK-2.4.0/sources/libraries/os/
Dos_ThreadLocalStorage.cpp65 inline bool IsMappedIndex(s32 index) in IsMappedIndex() argument
67 return ((sTLSMap >> index) & 1) == 1; in IsMappedIndex()
95 s32 index = SearchFreeTLSIndex(); in AllocateTLSIndex() local
96 if(index >= 0 && index < TLS_NUM) in AllocateTLSIndex()
98 sTLSMap |= (1 << index); in AllocateTLSIndex()
100 return index; in AllocateTLSIndex()
108 s32 FreeTLSIndex(int index) in FreeTLSIndex() argument
110 if(!IsMappedIndex(index)) in FreeTLSIndex()
114 return sTLSMap &= ~(1 << index); in FreeTLSIndex()
/CTR-SDK-2.4.0/include/nn/fnd/
Dfnd_FixedBufferVector.h36 const T& operator[](int index) const
38 return m_Buffer[index];
40 T& operator[](int index)
42 return m_Buffer[index];
58 void Remove(int index) in Remove() argument
63 if( index != last ) in Remove()
65 m_Buffer[index] = m_Buffer[last]; in Remove()
/CTR-SDK-2.4.0/include/nn/math/
Dmath_Matrix22.h121 VEC2& GetRow(int index) in GetRow()
123 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
124 return *reinterpret_cast<VEC2*>(&this->v[index]); in GetRow()
128 const VEC2& GetRow(int index) const in GetRow()
130 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
131 return *reinterpret_cast<const VEC2*>(&this->v[index]); in GetRow()
135 VEC2 GetColumn(int index) const in GetColumn()
137 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
139 column.x = this->m[0][index]; in GetColumn()
140 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix33.h171 VEC3& GetRow(int index) in GetRow()
173 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
174 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
178 const VEC3& GetRow(int index) const in GetRow()
180 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
181 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
185 VEC3 GetColumn(int index) const in GetColumn()
187 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
189 column.x = this->m[0][index]; in GetColumn()
190 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix43.h134 VEC3& GetRow(int index) in GetRow()
136 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
137 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
141 const VEC3& GetRow(int index) const in GetRow()
143 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
144 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
148 VEC4 GetColumn(int index) const in GetColumn()
150 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
152 column.x = this->m[0][index]; in GetColumn()
153 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix23.h128 VEC3& GetRow(int index) in GetRow()
130 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
131 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
135 const VEC3& GetRow(int index) const in GetRow()
137 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
138 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
142 VEC2 GetColumn(int index) const in GetColumn()
144 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
146 column.x = this->m[0][index]; in GetColumn()
147 column.y = this->m[1][index]; in GetColumn()
[all …]
/CTR-SDK-2.4.0/include/nn/net/osl/
Dosl_MbufIndexed.h45 static Mbuf* ConvertFromIndex(Index index);
47 void SetNext(Index index) in SetNext() argument
49 m_nextIndex = index; in SetNext()
52 void SetPrevious(Index index) in SetPrevious() argument
54 m_prevIndex = index; in SetPrevious()
Dosl_MbufPool.h52 Mbuf* GetPtrFromIndex(s32 index);
101 inline Mbuf* MbufPool::GetPtrFromIndex(s32 index) in GetPtrFromIndex() argument
103 NN_TASSERTMSG_(0 <= index && index < m_count, "index = %d, m_count = %d", index, m_count); in GetPtrFromIndex()
104 return reinterpret_cast<Mbuf*>(m_base + m_unitSize * index); in GetPtrFromIndex()
/CTR-SDK-2.4.0/include/nn/font/
Dfont_PackedFont.h291 void Use(int index);
297 void Unuse(int index);
303 void Lock(int index);
309 void Unlock(int index);
313 bool IsLocked(int index) const in IsLocked() argument
315 const OrderNode& node = GetNode(index); in IsLocked()
346 OrderNode& GetNode(int index) { return mpOrderNodeArray[index]; } in GetNode() argument
348 const OrderNode& GetNode(int index) const { return mpOrderNodeArray[index]; } in GetNode() argument
417 int CalcSheetIndex(GlyphIndex index) const;
Dfont_ResFontBase.h221 const CharWidths& GetCharWidthsFromIndex(GlyphIndex index) const;
233 GlyphIndex index
243 GlyphIndex index
255 GlyphIndex index,
304 GetTextureObject(int index) const in GetTextureObject() argument
307 return &GetTextureObjectsBufferPtr()[index]; in GetTextureObject()
/CTR-SDK-2.4.0/sources/libraries/test/
Dtest_XmlOutput.cpp66 int index = 0; in ConvertToXmlString() local
67 for(index = 0; index < SPECIALS_NUM; ++index) in ConvertToXmlString()
69 if(*pSrc == specials[index]) in ConvertToXmlString()
71 if(pDst + copyLens[index] - buf > STR_LEN) in ConvertToXmlString()
75 ::std::memcpy(pDst, converts[index], copyLens[index]); in ConvertToXmlString()
76 pDst += copyLens[index]; in ConvertToXmlString()
80 if(index == SPECIALS_NUM) // Not a special character in ConvertToXmlString()
/CTR-SDK-2.4.0/sources/libraries/fslow/
Dfslow_SafeHandle.cpp59 void SafeHandleTableEntry::Initialize(s32 index) in Initialize() argument
62 NN_TASSERT_(index <= MAX_INDEX); in Initialize()
64 m_DependencyIndex = static_cast<bit8>(index); in Initialize()
65 m_Handle.Initialize(index); in Initialize()
313 void SafeHandleTable::UnregisterRecursive(s32 index) in UnregisterRecursive() argument
315 SafeHandleTableEntry* pEntry = GetEntry(index); in UnregisterRecursive()
329 if(pEntryDependOn->IsActivated() && (pEntryDependOn->GetDependencyIndex() == index)) in UnregisterRecursive()
/CTR-SDK-2.4.0/sources/libraries/tpl/CTR/
Dtpl_crc32.cpp162 const char *getTextureFilePath(const void *infoData, int index) in getTextureFilePath() argument
166 NN_TASSERT_(index < header->numTexture); in getTextureFilePath()
169 reinterpret_cast<const CtrTextureInfo *>(header + 1) + index; in getTextureFilePath()
183 const char *filePath = getTextureFilePath(s.infoData, hash.index); in cmpTpkSearchData()
/CTR-SDK-2.4.0/include/nn/gx/CTR/
Dgx_MacroShader.h150 #define PICA_CMD_DATA_VS_FLOAT_ADDR(mode, index) \ argument
151 ( (index) & 0xff | ( (mode) ? 0x80000000 : 0) )
153 #define PICA_CMD_SET_VS_FLOAT_ADDR(mode, index) \ argument
154 PICA_CMD_DATA_VS_FLOAT_ADDR(mode, index), PICA_CMD_HEADER_SINGLE(PICA_REG_VS_FLOAT_ADDR)
659 #define PICA_CMD_DATA_GS_FLOAT_ADDR(mode, index) \ argument
660 ( ((index) & 0xff) | (mode) << 31 )
662 #define PICA_CMD_SET_GS_FLOAT_ADDR(mode, index) \ argument
663 PICA_CMD_DATA_GS_FLOAT_ADDR(mode, index), PICA_CMD_HEADER_SINGLE(PICA_REG_GS_FLOAT_ADDR)
/CTR-SDK-2.4.0/include/nn/fslow/
Dfslow_SafeHandle.h203 SafeHandle(bit8 index) { Initialize(index); } in SafeHandle() argument
258 void Initialize(s32 index);
345 SafeHandleTableEntry* GetEntry(s32 index) const in GetEntry() argument
347 return (index < m_NumEntry) ? (m_pEntryBuffer + index) : 0; in GetEntry()
355 void UnregisterRecursive(s32 index);
Dfslow_HandleTable.h231 s32 index = handle.GetFixedValue(); in FindEntryFromHandle() local
233 if(index < TNumEntry) in FindEntryFromHandle()
235 return m_Entry[index].HasHandle(value) ? (m_Entry + index) : 0; in FindEntryFromHandle()
/CTR-SDK-2.4.0/include/nn/boss/
Dboss_TaskIdList.h58 char* GetTaskId(u16 index);
Dboss_StepIdList.h58 u8 GetStepId(u16 index);

12