Home
last modified time | relevance | path

Searched refs:u32 (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_ShaderBinaryInfo.cpp30 const u32* binary = m_pShaderBinary; in AnalyzeBinary()
52 const u32* packageInfo = binary; in AnalyzeBinary()
57 m_pInstruction = static_cast<const u32*>( ut::AddOffsetToPtr( packageInfo, *binary ) ); in AnalyzeBinary()
63 const u32* swizzle = static_cast<const u32*>( ut::AddOffsetToPtr( packageInfo, *binary ) ); in AnalyzeBinary()
84 size += sizeof(u32) * 2; in GetCommonCommandSize()
99 size += 2 * sizeof(u32); // PutEnableMirroringShaderSetting の分 in GetShaderProgramCommandSize()
119 u32 vertexInstructionCount = ut::Min( m_InstructionCount, u32(VS_INSTRUCTION_MAX) ); in GetProgramCommandSize()
123 size += 2 * sizeof(u32); in GetProgramCommandSize()
125 size += 2 * sizeof(u32); in GetProgramCommandSize()
129 size += 2 * sizeof(u32); in GetProgramCommandSize()
[all …]
Dgfx_GlImplement.cpp44 u32 colorAddr, u32 colorSize, u32 clearColor, u32 colorWidth, in nwgfxClear()
45 u32 depthAddr, u32 depthSize, u32 clearDepth, u32 depthWidth in nwgfxClear()
58 u32* pColorAddr, in GetFrameBufferState()
59 u32* pDepthAddr in GetFrameBufferState()
82 *pColorAddr = static_cast<u32>(addr); in GetFrameBufferState()
103 *pDepthAddr = static_cast<u32>(addr); in GetFrameBufferState()
/NW4C-1.3.3/include/nw/gfx/
Dgfx_ActivateCommand.h51 static NW_INLINE u32 MultU32Color(u32 lhs, u32 rhs) in MultU32Color()
53 const u32 MASKx2 = (0xff << 1); in MultU32Color()
55 u32 r = ((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10; in MultU32Color()
56 u32 g = ((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10; in MultU32Color()
57 u32 b = ((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10; in MultU32Color()
71 static NW_INLINE u32 MultAddU32Color(u32 lhs, u32 rhs, u32 add) in MultAddU32Color()
73 const u32 MASK = 0xff; in MultAddU32Color()
74 const u32 MASKx2 = (0xff << 1); in MultAddU32Color()
76u32 r = (((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10) + (add & MASK); in MultAddU32Color()
77u32 g = (((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10) + ((add >> 8) & MASK… in MultAddU32Color()
[all …]
Dgfx_ShaderBinaryInfo.h58 : m_pShaderBinary( reinterpret_cast<const u32*>(shaderBinary) ), in ShaderBinaryInfo()
94 s32 BuildCommonCommand( u32* bufferAddress, u32 bufferSize ) const;
104 u32* currentBuffer = static_cast<u32*>( internal::NWGetCurrentCmdBuffer() ); in BuildCommonCommand()
105 u32* cmdBufferEnd = static_cast<u32*>( internal::NWGetCmdBufferEnd() ); in BuildCommonCommand()
106 u32 bufferSize = ut::GetOffsetFromPtr( currentBuffer, cmdBufferEnd ); in BuildCommonCommand()
138 …s32 BuildShaderProgramCommand( s32 vertexIndex, s32 geometryIndex, u32* bufferAddress, u32 bufferS…
150 u32* currentBuffer = static_cast<u32*>( internal::NWGetCurrentCmdBuffer() ); in BuildShaderProgramCommand()
151 u32* cmdBufferEnd = static_cast<u32*>( internal::NWGetCmdBufferEnd() ); in BuildShaderProgramCommand()
152 u32 bufferSize = ut::GetOffsetFromPtr( currentBuffer, cmdBufferEnd ); in BuildShaderProgramCommand()
199 u32 nameIndex; in SearchUniformIndex()
[all …]
Dgfx_CommandUtil.h110 CommandHeader(u32 rawData) : m_RawData( rawData ) {} in CommandHeader()
117 u32 GetAddress() const in GetAddress()
147 u32 GetByteEnableMask() const in GetByteEnableMask()
150 u32 mask = 0; in GetByteEnableMask()
165 u32 GetBurstModeFlag() const in GetBurstModeFlag()
191 u32 m_RawData;
204 inline u32
205 GetCmdValue(u32 value, u32 mask, s32 shift) in GetCmdValue()
212 SetCmdValue(u32* addr, TValue value, u32 mask, s32 shift) in SetCmdValue()
214 u32 result = *addr & ~(mask << shift); in SetCmdValue()
[all …]
Dgfx_FrameBuffer.h36 u32 height; //!< バッファの高さ情報です。
37 u32 width; //!< バッファの幅情報です。
38 u32 colorFormat; //!< カラーバッファのフォーマットです。
39 u32 depthFormat; //!< デプスバッファのフォーマットです。
40 u32 colorAddress; //!< カラーバッファのアドレスを指定します。
41 u32 depthAddress; //!< デプスバッファのアドレスを指定します。
99 u32 GetHeight() const { return m_Description.height; } in GetHeight()
106 void SetHeight(u32 height) { m_Description.height = height; } in SetHeight()
113 u32 GetWidth() const { return m_Description.width; } in GetWidth()
120 void SetWidth(u32 width) { m_Description.width = width; } in SetWidth()
[all …]
Dgfx_DisplayList.h59 m_CurrentBuffer = reinterpret_cast<u32*>(addr); in Begin()
60 m_StartAddress = reinterpret_cast<u32*>(addr); in Begin()
69 void WriteHeader(u32 regAddr, u8 byteEnable = 0xf)
83 void WriteHeaderIncremental(u32 regAddr, u8 byteEnable = 0xf)
96 void WriteData(u32 data) in WriteData()
123 const u32* pData = reinterpret_cast<const u32*>(data); in WriteData()
137 nw::os::MemCpy(m_CurrentBuffer, pData, copyCount * sizeof(u32)); in WriteData()
148 u32 End() in End()
152 return reinterpret_cast<u32>(m_CurrentBuffer) - reinterpret_cast<u32>(m_StartAddress); in End()
188 u32* m_CurrentBuffer;
[all …]
/NW4C-1.3.3/include/nw/font/
Dfont_RectDrawer.h75 static u32 GetVertexBufferCommandBufferSize(
77 u32 size);
89 static u32 GetVertexBufferSize();
98 static u32 GetCommandBufferSize(
100 u32 size);
137 u32 size);
155 u32 size);
175 virtual void DrawBegin(u32 flag = 0);
185 virtual void DrawEnd(u32 flag = 0);
229 static u32 SetUniformCommand( in SetUniformCommand()
[all …]
Dfont_ArchiveFontBase.h52 u32 GetRemain() const;
58 void Advance(u32 dx);
67 u32 size);
76 u32 size);
87 u32 size);
95 u32 ManagedCopy(ConstructContext* pContext);
111 const void* Get(u32 size);
120 u32 streamSize);
131 u32 size);
137 u32 GetOffset() const;
[all …]
/NW4C-1.3.3/sources/libraries/font/
Dfont_RectDrawer.cpp30 …NW_ASSERT((pStrBuf)->commandBufferSize + (size) / sizeof(u32) <= (pStrBuf)->commandBufferCapacity)…
32 (pStrBuf)->commandBufferSize += (size) / sizeof(u32)
110 const u32 TEX_FUNC_DATA =
120 const u32 TEX_ENV_SRC3 =
129 const u32 TEX_ENV_SRC4 =
138 const u32 TEX_ENV_OPERAND3 =
143 const u32 TEX_ENV_OPERAND4 =
148 const u32 TEX_ENV_OPERAND3_ALPHA =
153 const u32 TEX_ENV_OPERAND4_ALPHA =
158 const u32 TEX_ENV_COMBINE_MODULATE =
[all …]
Dfont_ArchiveFontBase.cpp149 const u32 nameLen = std::strlen(name); in IncludeName()
180 u32 foundLen; in IncludeName()
185 foundLen = static_cast<u32>(delimitor - found); in IncludeName()
214 u32 dataSize in IsValidResource()
217 …f(ut::BinaryFileHeader) + sizeof(ut::BinaryBlockHeader) + reinterpret_cast<u32>(reinterpret_cast<F… in IsValidResource()
267 u32 size in RequestData()
286 const u32 requireSize = sizeof(ut::BinaryBlockHeader); in ConstructOpDispatch()
326 const u32 requireSize = sizeof(ut::BinaryFileHeader); in ConstructOpAnalyzeFileHeader()
359 const u32 requireSize = pContext->header.size - sizeof(ut::BinaryBlockHeader); in ConstructOpAnalyzeGLGR()
382 const u32 infoSize = sizeof(ut::BinaryFileHeader) + pContext->header.size; in ConstructOpAnalyzeGLGR()
[all …]
Dfont_CharStrmReader.cpp26 const u32 SJIS_LOW_WIDTH = 0xBC;
27 const u32 SJIS_LOW_BASE = 0x40;
29 const u32 SJIS_HIGH0_ST = 0x81;
31 const u32 SJIS_HIGH0_ED = 0x85;
32 const u32 SJIS_HIGH1_ST = 0x87;
33 const u32 SJIS_HIGH1_ED = 0x88;
34 const u32 SJIS_HIGH2_ST = 0x88;
36 const u32 SJIS_HIGH2_ED = 0xA0;
37 const u32 SJIS_HIGH3_ST = 0xE0;
39 const u32 SJIS_HIGH3_ED = 0x100;
[all …]
/NW4C-1.3.3/include/nw/gfx/res/
Dgfx_ResTextureMapper.h129 ::std::pair<u32, u32*> command = GetOwnerCommand(); in SetMinFilter()
143 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in SetMinFilter()
146 const u32 table2[] = in SetMinFilter()
155 u32 value2 = table2[value]; in SetMinFilter()
158 const u32 table24[] = in SetMinFilter()
167 u32 value24 = table24[value]; in SetMinFilter()
181 ::std::pair<u32, u32*> command = GetOwnerCommand(); in GetMagFilter()
185 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in GetMagFilter()
197 ::std::pair<u32, u32*> command = GetOwnerCommand(); in SetMagFilter()
201 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in SetMagFilter()
[all …]
/NW4C-1.3.3/include/nw/snd/
Dsnd_SoundArchive.h71 typedef u32 ItemId;
182 u32 flags;
193 static const u32 SEQ_BANK_MAX = 4;
207 u32 startOffset; //!< 非公開です。ライブラリ内部で使用されています。
208 u32 bankIds[ SEQ_BANK_MAX ]; //!< シーケンスサウンドで使用されるバンク ID です。
214 u32 allocateTrackFlags;
233 for ( u32 i = 0; i < SEQ_BANK_MAX; i++ ) in SequenceSoundInfo()
278 u32 index; // ウェーブサウンドセットファイル (bcwsd) 内で何番目か
279 u32 allocTrackCount; // 現状は 1。今後マルチトラック化した場合、ほかの値が入る
323 u32 fileId;
[all …]
Dsnd_DriverCommandManager.h33 void Initialize( void* commandBuffer, u32 commandBufferSize );
38 u32 GetAllocatableCommandSize() const;
40 u32 PushCommand( DriverCommand* command );
43 u32 FlushCommand( bool forceFlag );
44 void WaitCommandReply( u32 tag );
46 bool IsFinishCommand( u32 tag ) const;
55 void* AllocMemory( u32 count );
56 void* TryAllocMemory( u32 count );
73 u32 m_CommandTag;
74 u32 m_FinishCommandTag;
[all …]
Dsnd_WaveArchiveFileReader.h28 static const u32 SIGNATURE_FILE = NW_UT_MAKE_SIGWORD( 'C', 'W', 'A', 'R' );
29 static const u32 SIGNATURE_WARC_TABLE;
37 u32 GetWaveFileCount() const;
38 u32 GetWaveFileSize( u32 waveIndex ) const;
39 u32 GetWaveFileOffsetFromFileHead( u32 waveIndex ) const;
42 const void* GetWaveFile( u32 waveIndex ) const;
45 const void* SetWaveFile( u32 waveIndex, const void* pWaveFile );
46 bool IsLoaded( u32 waveIndex ) const in IsLoaded()
66 const void* GetWaveFileForWhole( u32 waveIndex ) const in GetWaveFileForWhole()
68 u32 offset = m_pInfoBlockBody->GetOffsetFromFileBlockBody( waveIndex ); in GetWaveFileForWhole()
[all …]
Dsnd_SoundArchiveLoader.h49 static const u32 SIGNATURE_INDIVIDUAL_WAVE = NW_UT_MAKE_SIGWORD( 'C', 'I', 'W', 'V' );
55 u32 signature;
56 u32 fileId; //< 所属する波形アーカイブファイル ID
57 u32 waveIndex; //< 波形アーカイブ内インデックス
58 u32 padding[5];
61 IndividualWaveInfo( u32 id, u32 index ) in IndividualWaveInfo()
134 u32 loadFlag = LOAD_ALL, // LoadFlag の論理和を渡す
167 u32 loadFlag = LOAD_ALL, // LoadFlag の論理和を渡す
184 bool IsDataLoaded( SoundArchive::ItemId itemId, u32 loadFlag = LOAD_ALL ) const;
199 bool IsDataLoaded( const char* pItemName, u32 loadFlag = LOAD_ALL ) const;
[all …]
Dsnd_RomSoundArchive.h208 u32 begin,
209 u32 length );
217 u32 begin,
218 u32 length ) const;
236 RomFileStream( const char* path, u32 offset, u32 size );
239 RomFileStream( const nn::fs::File* fileInfo, u32 offset, u32 size );
241 RomFileStream( nn::fs::FileReader* fileReader, u32 offset, u32 size );
244 virtual s32 Read( void* buf, u32 length );
245 virtual void Seek( s32 offset, u32 origin );
246 virtual u32 Tell() const { return io::RomFileStream::Tell() - m_Offset; } in Tell()
[all …]
Dsnd_StreamSoundPlayer.h63 u32 loopStart;
71 u32 loopEnd;
86 static const u32 DATA_BLOCK_SIZE_MAX = 8 * 1024;
87 static const u32 STRM_TRACK_NUM = 4;
111 u32 allocChannelCount,
135 void SetTrackVolume( u32 trackBitFlag, float volume );
136 void SetTrackPan( u32 trackBitFlag, float pan );
137 void SetTrackSurroundPan( u32 trackBitFlag, float span );
155 u32 dataBlockOffset,
156 u32 trackCount,
[all …]
Dsnd_Sound3DEngine.h114 static const u32 UPDATE_VOLUME = ( 1 << 0 );
123 static const u32 UPDATE_PRIORITY = ( 1 << 1 );
132 static const u32 UPDATE_PAN = ( 1 << 2 );
141 static const u32 UPDATE_SPAN = ( 1 << 3 );
151 static const u32 UPDATE_FILTER = ( 1 << 4 );
160 static const u32 UPDATE_PITCH = ( 1 << 5 );
170 static const u32 UPDATE_START_PRIORITY = ( 1 << 24 );
223 u32 soundId,
224 u32 updateFlag,
233 u32 soundId
[all …]
/NW4C-1.3.3/include/nw/ut/
Dut_Float24.h44 static u32 Float32ToBits32(f32 value) in Float32ToBits32()
46 return *reinterpret_cast<u32*>(&value); in Float32ToBits32()
56 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32()
84 /* implicit */ Float24( u32 bits24 ) in Float24()
97 u32 GetFloat24Value() const { return Float32ToBits24( m_Float32 ); } in GetFloat24Value()
100 Float24& operator =(u32 bits24) { this->m_Float32 = Bits24ToFloat32( bits24 ); return *this; }
124 static f32 Bits24ToFloat32(u32 bits24) in Bits24ToFloat32()
126 u32 sign = bits24 & SIGN24; in Bits24ToFloat32()
128 u32 fraction = bits24 & FRACTION_MASK24; in Bits24ToFloat32()
130 u32 bits32 = 0; in Bits24ToFloat32()
[all …]
/NW4C-1.3.3/include/nw/lyt/
Dlyt_Arc.h32 u32 signature; //!< ファイルシグネチャ
35 u32 version; //!< ファイルバージョン
36 u32 fileSize; //!< ファイルサイズ
43 const u32 DARCH_SIGNATURE = 0x63726164; // 'darc'
45 const u32 DARCH_VERSION = 0x01000000;
52 u32 entryNum;
54 u32 FSTLength;
55 u32 currDir;
62 u32 startOffset;
63 u32 length;
[all …]
Dlyt_Resources.h80 const u32 BinaryFileFormatVersion = NW_UT_MAKE_VERSION(MajorVersion, MinorVersion, MicroVersi…
89 const u32 FILESIGNATURE_CLYT = NW_UT_MAKE_SIGWORD('C', 'L', 'Y', 'T');
92 const u32 DATABLOCKKIND_LAYOUT = NW_UT_MAKE_SIGWORD('l', 'y', 't', '1');
94 const u32 DATABLOCKKIND_PANEBEGIN = NW_UT_MAKE_SIGWORD('p', 'a', 's', '1');
96 const u32 DATABLOCKKIND_PANEEND = NW_UT_MAKE_SIGWORD('p', 'a', 'e', '1');
98 const u32 DATABLOCKKIND_PANE = NW_UT_MAKE_SIGWORD('p', 'a', 'n', '1');
100 const u32 DATABLOCKKIND_PICTURE = NW_UT_MAKE_SIGWORD('p', 'i', 'c', '1');
102 const u32 DATABLOCKKIND_TEXTBOX = NW_UT_MAKE_SIGWORD('t', 'x', 't', '1');
104 const u32 DATABLOCKKIND_WINDOW = NW_UT_MAKE_SIGWORD('w', 'n', 'd', '1');
106 const u32 DATABLOCKKIND_BOUNDING = NW_UT_MAKE_SIGWORD('b', 'n', 'd', '1');
[all …]
/NW4C-1.3.3/include/nw/demo/
Ddemo_PadButton.h44 void Update( u32 buttonStatus );
57 bool IsButtonPress( u32 buttonBit ) const { return ( m_ButtonPress & buttonBit ) != 0; } in IsButtonPress()
58 bool IsButtonDown( u32 buttonBit ) const { return ( m_ButtonDown & buttonBit ) != 0; } in IsButtonDown()
59 bool IsButtonUp( u32 buttonBit ) const { return ( m_ButtonUp & buttonBit ) != 0; } in IsButtonUp()
60 bool IsButtonRepeat( u32 buttonBit ) const { return ( m_ButtonRepeat & buttonBit ) != 0; } in IsButtonRepeat()
61 … bool IsButtonRepeatFast( u32 buttonBit ) const { return ( m_ButtonRepeatFast & buttonBit ) != 0; } in IsButtonRepeatFast()
64 u32 m_ButtonPress;
65 u32 m_ButtonDown;
66 u32 m_ButtonUp;
67 u32 m_ButtonRepeat;
[all …]
/NW4C-1.3.3/sources/libraries/snd/
Dsnd_WaveArchiveFileReader.cpp28 const u32 SIGNATURE_INFO_BLOCK = NW_UT_MAKE_SIGWORD( 'I', 'N', 'F', 'O' );
29 const u32 SIGNATURE_FILE_BLOCK = NW_UT_MAKE_SIGWORD( 'F', 'I', 'L', 'E' );
31 const u32 SUPPORTED_FILE_VERSION = 0x01000000; // ライブラリがサポートする最低バージョン
32 const u32 CURRENT_FILE_VERSION = 0x01000000; // ライブラリがサポートする最新バージョン
75 const u32 WaveArchiveFileReader::SIGNATURE_WARC_TABLE = NW_UT_MAKE_SIGWORD( 'C', 'W', 'A', 'T' );
110 for ( u32 i = 0; i < GetWaveFileCount(); i++ ) in InitializeFileTable()
116 u32 WaveArchiveFileReader::GetWaveFileCount() const in GetWaveFileCount()
122 const void* WaveArchiveFileReader::GetWaveFile( u32 waveIndex ) const in GetWaveFile()
134 u32 WaveArchiveFileReader::GetWaveFileSize( u32 waveIndex ) const in GetWaveFileSize()
140 u32 WaveArchiveFileReader::GetWaveFileOffsetFromFileHead( u32 waveIndex ) const in GetWaveFileOffsetFromFileHead()
[all …]

12345678910>>...15