Home
last modified time | relevance | path

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

12345678910>>...16

/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_ShaderBinaryInfo.cpp32 const u32* binary = m_pShaderBinary; in AnalyzeBinary()
54 const u32* packageInfo = binary; in AnalyzeBinary()
59 m_pInstruction = static_cast<const u32*>( ut::AddOffsetToPtr( packageInfo, *binary ) ); in AnalyzeBinary()
65 const u32* swizzle = static_cast<const u32*>( ut::AddOffsetToPtr( packageInfo, *binary ) ); in AnalyzeBinary()
86 size += sizeof(u32) * 2; in GetCommonCommandSize()
101 size += 2 * sizeof(u32); // PutEnableMirroringShaderSetting の分 in GetShaderProgramCommandSize()
121 u32 vertexInstructionCount = ut::Min( m_InstructionCount, u32(VS_INSTRUCTION_MAX) ); in GetProgramCommandSize()
125 size += 2 * sizeof(u32); in GetProgramCommandSize()
127 size += 2 * sizeof(u32); in GetProgramCommandSize()
131 size += 2 * sizeof(u32); in GetProgramCommandSize()
[all …]
Dgfx_GlImplement.cpp46 u32 colorAddr, u32 colorSize, u32 clearColor, u32 colorWidth, in nwgfxClear()
47 u32 depthAddr, u32 depthSize, u32 clearDepth, u32 depthWidth in nwgfxClear()
60 u32* pColorAddr, in GetFrameBufferState()
61 u32* pDepthAddr in GetFrameBufferState()
84 *pColorAddr = static_cast<u32>(addr); in GetFrameBufferState()
105 *pDepthAddr = static_cast<u32>(addr); in GetFrameBufferState()
/NW4C-2.0.3/include/nw/gfx/
Dgfx_ActivateCommand.h53 static NW_INLINE u32 MultU32Color(u32 lhs, u32 rhs) in MultU32Color()
55 const u32 MASKx2 = (0xff << 1); in MultU32Color()
57 u32 r = ((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10; in MultU32Color()
58 u32 g = ((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10; in MultU32Color()
59 u32 b = ((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10; in MultU32Color()
73 static NW_INLINE u32 MultAddU32Color(u32 lhs, u32 rhs, u32 add) in MultAddU32Color()
75 const u32 MASK = 0xff; in MultAddU32Color()
76 const u32 MASKx2 = (0xff << 1); in MultAddU32Color()
78u32 r = (((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10) + (add & MASK); in MultAddU32Color()
79u32 g = (((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10) + ((add >> 8) & MASK… in MultAddU32Color()
[all …]
Dgfx_ShaderBinaryInfo.h60 : m_pShaderBinary( reinterpret_cast<const u32*>(shaderBinary) ), in ShaderBinaryInfo()
96 s32 BuildCommonCommand( u32* bufferAddress, u32 bufferSize ) const;
106 u32* currentBuffer = static_cast<u32*>( internal::NWGetCurrentCmdBuffer() ); in BuildCommonCommand()
107 u32* cmdBufferEnd = static_cast<u32*>( internal::NWGetCmdBufferEnd() ); in BuildCommonCommand()
108 u32 bufferSize = ut::GetOffsetFromPtr( currentBuffer, cmdBufferEnd ); in BuildCommonCommand()
140 …s32 BuildShaderProgramCommand( s32 vertexIndex, s32 geometryIndex, u32* bufferAddress, u32 bufferS…
152 u32* currentBuffer = static_cast<u32*>( internal::NWGetCurrentCmdBuffer() ); in BuildShaderProgramCommand()
153 u32* cmdBufferEnd = static_cast<u32*>( internal::NWGetCmdBufferEnd() ); in BuildShaderProgramCommand()
154 u32 bufferSize = ut::GetOffsetFromPtr( currentBuffer, cmdBufferEnd ); in BuildShaderProgramCommand()
201 u32 nameIndex; in SearchUniformIndex()
[all …]
Dgfx_CommandUtil.h112 CommandHeader(u32 rawData) : m_RawData( rawData ) {} in CommandHeader()
119 u32 GetAddress() const in GetAddress()
149 u32 GetByteEnableMask() const in GetByteEnableMask()
152 u32 mask = 0; in GetByteEnableMask()
167 u32 GetBurstModeFlag() const in GetBurstModeFlag()
193 u32 m_RawData;
206 inline u32
207 GetCmdValue(u32 value, u32 mask, s32 shift) in GetCmdValue()
214 SetCmdValue(u32* addr, TValue value, u32 mask, s32 shift) in SetCmdValue()
216 u32 result = *addr & ~(mask << shift); in SetCmdValue()
[all …]
Dgfx_FrameBuffer.h38 u32 height; //!< バッファの高さ情報です。
39 u32 width; //!< バッファの幅情報です。
40 u32 colorFormat; //!< カラーバッファのフォーマットです。
41 u32 depthFormat; //!< デプスバッファのフォーマットです。
42 u32 colorAddress; //!< カラーバッファのアドレスを指定します。
43 u32 depthAddress; //!< デプスバッファのアドレスを指定します。
101 u32 GetHeight() const { return m_Description.height; } in GetHeight()
108 void SetHeight(u32 height) { m_Description.height = height; } in SetHeight()
115 u32 GetWidth() const { return m_Description.width; } in GetWidth()
122 void SetWidth(u32 width) { m_Description.width = width; } in SetWidth()
[all …]
Dgfx_DisplayList.h61 m_CurrentBuffer = reinterpret_cast<u32*>(addr); in Begin()
62 m_StartAddress = reinterpret_cast<u32*>(addr); in Begin()
71 void WriteHeader(u32 regAddr, u8 byteEnable = 0xf)
85 void WriteHeaderIncremental(u32 regAddr, u8 byteEnable = 0xf)
98 void WriteData(u32 data) in WriteData()
125 const u32* pData = reinterpret_cast<const u32*>(data); in WriteData()
139 nw::os::MemCpy(m_CurrentBuffer, pData, copyCount * sizeof(u32)); in WriteData()
150 u32 End() in End()
154 return reinterpret_cast<u32>(m_CurrentBuffer) - reinterpret_cast<u32>(m_StartAddress); in End()
190 u32* m_CurrentBuffer;
[all …]
/NW4C-2.0.3/include/nw/font/
Dfont_RectDrawer.h77 static u32 GetVertexBufferCommandBufferSize(
79 u32 size);
91 static u32 GetVertexBufferSize();
100 static u32 GetCommandBufferSize(
102 u32 size);
139 u32 size);
157 u32 size);
177 virtual void DrawBegin(u32 flag = 0);
187 virtual void DrawEnd(u32 flag = 0);
231 static u32 SetUniformCommand( in SetUniformCommand()
[all …]
Dfont_ArchiveFontBase.h54 u32 GetRemain() const;
60 void Advance(u32 dx);
69 u32 size);
78 u32 size);
89 u32 size);
97 u32 ManagedCopy(ConstructContext* pContext);
113 const void* Get(u32 size);
122 u32 streamSize);
133 u32 size);
139 u32 GetOffset() const;
[all …]
/NW4C-2.0.3/sources/libraries/font/
Dfont_RectDrawer.cpp32 …NW_ASSERT((pStrBuf)->commandBufferSize + (size) / sizeof(u32) <= (pStrBuf)->commandBufferCapacity)…
34 (pStrBuf)->commandBufferSize += (size) / sizeof(u32)
112 const u32 TEX_FUNC_DATA =
122 const u32 TEX_ENV_SRC3 =
131 const u32 TEX_ENV_SRC4 =
140 const u32 TEX_ENV_OPERAND3 =
145 const u32 TEX_ENV_OPERAND4 =
150 const u32 TEX_ENV_OPERAND3_ALPHA =
155 const u32 TEX_ENV_OPERAND4_ALPHA =
160 const u32 TEX_ENV_COMBINE_MODULATE =
[all …]
Dfont_ArchiveFontBase.cpp151 const u32 nameLen = std::strlen(name); in IncludeName()
182 u32 foundLen; in IncludeName()
187 foundLen = static_cast<u32>(delimitor - found); in IncludeName()
216 u32 dataSize in IsValidResource()
219 …f(ut::BinaryFileHeader) + sizeof(ut::BinaryBlockHeader) + reinterpret_cast<u32>(reinterpret_cast<F… in IsValidResource()
269 u32 size in RequestData()
288 const u32 requireSize = sizeof(ut::BinaryBlockHeader); in ConstructOpDispatch()
328 const u32 requireSize = sizeof(ut::BinaryFileHeader); in ConstructOpAnalyzeFileHeader()
361 const u32 requireSize = pContext->header.size - sizeof(ut::BinaryBlockHeader); in ConstructOpAnalyzeGLGR()
384 const u32 infoSize = sizeof(ut::BinaryFileHeader) + pContext->header.size; in ConstructOpAnalyzeGLGR()
[all …]
Dfont_CharStrmReader.cpp28 const u32 SJIS_LOW_WIDTH = 0xBC;
29 const u32 SJIS_LOW_BASE = 0x40;
31 const u32 SJIS_HIGH0_ST = 0x81;
33 const u32 SJIS_HIGH0_ED = 0x85;
34 const u32 SJIS_HIGH1_ST = 0x87;
35 const u32 SJIS_HIGH1_ED = 0x88;
36 const u32 SJIS_HIGH2_ST = 0x88;
38 const u32 SJIS_HIGH2_ED = 0xA0;
39 const u32 SJIS_HIGH3_ST = 0xE0;
41 const u32 SJIS_HIGH3_ED = 0x100;
[all …]
/NW4C-2.0.3/include/nw/gfx/res/
Dgfx_ResTextureMapper.h131 ::std::pair<u32, u32*> command = GetOwnerCommand(); in SetMinFilter()
145 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in SetMinFilter()
148 const u32 table2[] = in SetMinFilter()
157 u32 value2 = table2[value]; in SetMinFilter()
160 const u32 table24[] = in SetMinFilter()
169 u32 value24 = table24[value]; in SetMinFilter()
183 ::std::pair<u32, u32*> command = GetOwnerCommand(); in GetMagFilter()
187 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in GetMagFilter()
199 ::std::pair<u32, u32*> command = GetOwnerCommand(); in SetMagFilter()
203 NW_MIN_ASSERT(command.first, (CMD_INDEX + 1) * sizeof(u32)); in SetMagFilter()
[all …]
Dgfx_ResVertex.h124 … NW_RES_FIELD_FLAGS_DECL( u32, Flags ) // GetFlags(), SetFlags(), EnableFlags(), DisableFlags()
135 u32 GetVertexCount();
205 NW_RES_FIELD_PRIMITIVE_DECL( u32, FormatType ) // GetFormatType(), SetFormatType()
233 u32 m_LocationAddress;
234 u32 m_MemoryArea;
274 NW_RES_FIELD_PRIMITIVE_DECL( u32, BufferObject ) // GetBufferObject(), SetBufferObject() in NW_RES_CTOR_INHERIT()
284 NW_RES_FIELD_PRIMITIVE_DECL( u32, LocationFlag ) // GetLocationFlag(), SetLocationFlag() in NW_RES_CTOR_INHERIT()
301 u32 GetLocationAddress() const { return ref().m_LocationAddress; } in NW_RES_CTOR_INHERIT()
308 void SetLocationAddress(u32 address) { ref().m_LocationAddress = address; } in SetLocationAddress()
309 …void SetLocationAddress(const void* address) { ref().m_LocationAddress = reinterpret_cast<u32>(add… in SetLocationAddress()
[all …]
/NW4C-2.0.3/include/nw/snd/
Dsnd_SoundArchive.h73 typedef u32 ItemId;
184 u32 flags;
195 static const u32 SEQ_BANK_MAX = 4;
209 u32 startOffset; //!< 非公開です。ライブラリ内部で使用されています。
210 u32 bankIds[ SEQ_BANK_MAX ]; //!< シーケンスサウンドで使用されるバンク ID です。
216 u32 allocateTrackFlags;
235 for ( u32 i = 0; i < SEQ_BANK_MAX; i++ ) in SequenceSoundInfo()
280 u32 index; // ウェーブサウンドセットファイル (bcwsd) 内で何番目か
281 u32 allocTrackCount; // 現状は 1。今後マルチトラック化した場合、ほかの値が入る
325 u32 fileId;
[all …]
Dsnd_DriverCommandManager.h35 void Initialize( void* commandBuffer, u32 commandBufferSize );
40 u32 GetAllocatableCommandSize() const;
42 u32 PushCommand( DriverCommand* command );
45 u32 FlushCommand( bool forceFlag );
46 void WaitCommandReply( u32 tag );
48 bool IsFinishCommand( u32 tag ) const;
57 void* AllocMemory( u32 count );
58 void* TryAllocMemory( u32 count );
75 u32 m_CommandTag;
76 u32 m_FinishCommandTag;
[all …]
Dsnd_WaveArchiveFileReader.h30 static const u32 SIGNATURE_FILE = NW_UT_MAKE_SIGWORD( 'C', 'W', 'A', 'R' );
31 static const u32 SIGNATURE_WARC_TABLE;
39 u32 GetWaveFileCount() const;
40 u32 GetWaveFileSize( u32 waveIndex ) const;
41 u32 GetWaveFileOffsetFromFileHead( u32 waveIndex ) const;
44 const void* GetWaveFile( u32 waveIndex ) const;
47 const void* SetWaveFile( u32 waveIndex, const void* pWaveFile );
48 bool IsLoaded( u32 waveIndex ) const in IsLoaded()
68 const void* GetWaveFileForWhole( u32 waveIndex ) const in GetWaveFileForWhole()
70 u32 offset = m_pInfoBlockBody->GetOffsetFromFileBlockBody( waveIndex ); in GetWaveFileForWhole()
[all …]
Dsnd_SoundArchiveLoader.h51 static const u32 SIGNATURE_INDIVIDUAL_WAVE = NW_UT_MAKE_SIGWORD( 'C', 'I', 'W', 'V' );
57 u32 signature;
58 u32 fileId; //< 所属する波形アーカイブファイル ID
59 u32 waveIndex; //< 波形アーカイブ内インデックス
60 u32 padding[5];
63 IndividualWaveInfo( u32 id, u32 index ) in IndividualWaveInfo()
137 u32 loadFlag = LOAD_ALL, // LoadFlag の論理和を渡す
170 u32 loadFlag = LOAD_ALL, // LoadFlag の論理和を渡す
187 bool IsDataLoaded( SoundArchive::ItemId itemId, u32 loadFlag = LOAD_ALL ) const;
202 bool IsDataLoaded( const char* pItemName, u32 loadFlag = LOAD_ALL ) const;
[all …]
Dsnd_RomSoundArchive.h210 u32 begin,
211 u32 length );
219 u32 begin,
220 u32 length ) const;
238 RomFileStream( const char* path, u32 offset, u32 size );
241 RomFileStream( const nn::fs::File* fileInfo, u32 offset, u32 size );
243 RomFileStream( nn::fs::FileReader* fileReader, u32 offset, u32 size );
246 virtual s32 Read( void* buf, u32 length );
247 virtual void Seek( s32 offset, u32 origin );
248 virtual u32 Tell() const { return io::RomFileStream::Tell() - m_Offset; } in Tell()
[all …]
Dsnd_StreamSoundPlayer.h65 u32 loopStart;
73 u32 loopEnd;
88 static const u32 DATA_BLOCK_SIZE_MAX = 8 * 1024;
89 static const u32 STRM_TRACK_NUM = 4;
113 u32 allocChannelCount,
137 void SetTrackVolume( u32 trackBitFlag, float volume );
138 void SetTrackPan( u32 trackBitFlag, float pan );
139 void SetTrackSurroundPan( u32 trackBitFlag, float span );
157 u32 dataBlockOffset,
158 u32 trackCount,
[all …]
Dsnd_Sound3DEngine.h116 static const u32 UPDATE_VOLUME = ( 1 << 0 );
125 static const u32 UPDATE_PRIORITY = ( 1 << 1 );
134 static const u32 UPDATE_PAN = ( 1 << 2 );
143 static const u32 UPDATE_SPAN = ( 1 << 3 );
153 static const u32 UPDATE_FILTER = ( 1 << 4 );
162 static const u32 UPDATE_PITCH = ( 1 << 5 );
172 static const u32 UPDATE_START_PRIORITY = ( 1 << 24 );
225 u32 soundId,
226 u32 updateFlag,
235 u32 soundId
[all …]
/NW4C-2.0.3/include/nw/ut/
Dut_Float24.h46 static u32 Float32ToBits32(f32 value) in Float32ToBits32()
48 return *reinterpret_cast<u32*>(&value); in Float32ToBits32()
58 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32()
86 /* implicit */ Float24( u32 bits24 ) in Float24()
99 u32 GetFloat24Value() const { return Float32ToBits24( m_Float32 ); } in GetFloat24Value()
102 Float24& operator =(u32 bits24) { this->m_Float32 = Bits24ToFloat32( bits24 ); return *this; }
126 static f32 Bits24ToFloat32(u32 bits24) in Bits24ToFloat32()
128 u32 sign = bits24 & SIGN24; in Bits24ToFloat32()
130 u32 fraction = bits24 & FRACTION_MASK24; in Bits24ToFloat32()
132 u32 bits32 = 0; in Bits24ToFloat32()
[all …]
/NW4C-2.0.3/include/nw/demo/
Ddemo_PadButton.h46 void Update( u32 buttonStatus );
59 bool IsButtonPress( u32 buttonBit ) const { return ( m_ButtonPress & buttonBit ) != 0; } in IsButtonPress()
60 bool IsButtonDown( u32 buttonBit ) const { return ( m_ButtonDown & buttonBit ) != 0; } in IsButtonDown()
61 bool IsButtonUp( u32 buttonBit ) const { return ( m_ButtonUp & buttonBit ) != 0; } in IsButtonUp()
62 bool IsButtonRepeat( u32 buttonBit ) const { return ( m_ButtonRepeat & buttonBit ) != 0; } in IsButtonRepeat()
63 … bool IsButtonRepeatFast( u32 buttonBit ) const { return ( m_ButtonRepeatFast & buttonBit ) != 0; } in IsButtonRepeatFast()
66 u32 m_ButtonPress;
67 u32 m_ButtonDown;
68 u32 m_ButtonUp;
69 u32 m_ButtonRepeat;
[all …]
/NW4C-2.0.3/sources/libraries/snd/
Dsnd_WaveArchiveFileReader.cpp30 const u32 SIGNATURE_INFO_BLOCK = NW_UT_MAKE_SIGWORD( 'I', 'N', 'F', 'O' );
31 const u32 SIGNATURE_FILE_BLOCK = NW_UT_MAKE_SIGWORD( 'F', 'I', 'L', 'E' );
33 const u32 SUPPORTED_FILE_VERSION = 0x01000000; // ライブラリがサポートする最低バージョン
34 const u32 CURRENT_FILE_VERSION = 0x01000000; // ライブラリがサポートする最新バージョン
77 const u32 WaveArchiveFileReader::SIGNATURE_WARC_TABLE = NW_UT_MAKE_SIGWORD( 'C', 'W', 'A', 'T' );
112 for ( u32 i = 0; i < GetWaveFileCount(); i++ ) in InitializeFileTable()
118 u32 WaveArchiveFileReader::GetWaveFileCount() const in GetWaveFileCount()
124 const void* WaveArchiveFileReader::GetWaveFile( u32 waveIndex ) const in GetWaveFile()
136 u32 WaveArchiveFileReader::GetWaveFileSize( u32 waveIndex ) const in GetWaveFileSize()
142 u32 WaveArchiveFileReader::GetWaveFileOffsetFromFileHead( u32 waveIndex ) const in GetWaveFileOffsetFromFileHead()
[all …]
/NW4C-2.0.3/include/nw/lyt/
Dlyt_Resources.h82 const u32 BinaryFileFormatVersion = NW_UT_MAKE_VERSION(MajorVersion, MinorVersion, MicroVersi…
91 const u32 FILESIGNATURE_CLYT = NW_UT_MAKE_SIGWORD('C', 'L', 'Y', 'T');
94 const u32 DATABLOCKKIND_LAYOUT = NW_UT_MAKE_SIGWORD('l', 'y', 't', '1');
96 const u32 DATABLOCKKIND_PANEBEGIN = NW_UT_MAKE_SIGWORD('p', 'a', 's', '1');
98 const u32 DATABLOCKKIND_PANEEND = NW_UT_MAKE_SIGWORD('p', 'a', 'e', '1');
100 const u32 DATABLOCKKIND_PANE = NW_UT_MAKE_SIGWORD('p', 'a', 'n', '1');
102 const u32 DATABLOCKKIND_PICTURE = NW_UT_MAKE_SIGWORD('p', 'i', 'c', '1');
104 const u32 DATABLOCKKIND_TEXTBOX = NW_UT_MAKE_SIGWORD('t', 'x', 't', '1');
106 const u32 DATABLOCKKIND_WINDOW = NW_UT_MAKE_SIGWORD('w', 'n', 'd', '1');
108 const u32 DATABLOCKKIND_BOUNDING = NW_UT_MAKE_SIGWORD('b', 'n', 'd', '1');
[all …]

12345678910>>...16