Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 25 of 35) sorted by relevance

12

/CTR-SDK-4.2.7-SampleDemos/demo1/
Dfs.cpp42 s64 fileSize = m_RomFsFile.GetSize(); in Start() local
43 m_FileBuffer = reinterpret_cast<char*>(mp_AppHeap->Allocate(fileSize)); in Start()
78 s64 fileSize = m_RomFsFile.GetSize(); in ThreadFuncImpl() local
79 m_RomFsFile.Read(m_FileBuffer, fileSize); in ThreadFuncImpl()
/CTR-SDK-4.2.7-SampleDemos/font/ResFont/
Dmain.cpp63 const u32 fileSize = (u32)shaderReader.GetSize(); in InitShaders() local
65 void* shaderBinary = s_AppHeap.Allocate(fileSize); in InitShaders()
71 shaderReader.Read(shaderBinary, fileSize); in InitShaders()
72 NN_ASSERT(read == fileSize); in InitShaders()
75 nn::font::RectDrawer::GetVertexBufferCommandBufferSize(shaderBinary, fileSize); in InitShaders()
78 pDrawer->Initialize(vtxBufCmdBuf, shaderBinary, fileSize); in InitShaders()
185 s32 fileSize = (s32)fontReader.GetSize(); in InitFont() local
186 if ( fileSize <= 0 ) in InitFont()
191 void* buffer = s_AppHeap.Allocate(fileSize, nn::font::GlyphDataAlignment); in InitFont()
197 s32 readSize = fontReader.Read(buffer, fileSize); in InitFont()
[all …]
/CTR-SDK-4.2.7-SampleDemos/font/ArchiveFont/
Dmain.cpp71 const u32 fileSize = (u32)shaderReader.GetSize(); in InitShaders() local
73 void* shaderBinary = s_AppHeap.Allocate(fileSize); in InitShaders()
79 shaderReader.Read(shaderBinary, fileSize); in InitShaders()
80 NN_ASSERT(read == fileSize); in InitShaders()
83 nn::font::RectDrawer::GetVertexBufferCommandBufferSize(shaderBinary, fileSize); in InitShaders()
86 pDrawer->Initialize(vtxBufCmdBuf, shaderBinary, fileSize); in InitShaders()
194 const u32 fileSize = (u32)pFileReader->GetSize(); in InitFont() local
195 if (fileSize <= 0) in InitFont()
201 const u32 readBufferSize = fileSize; in InitFont()
/CTR-SDK-4.2.7-SampleDemos/font/PackedFont/
Dmain.cpp73 const u32 fileSize = (u32)shaderReader.GetSize(); in InitShaders() local
75 void* shaderBinary = s_AppHeap.Allocate(fileSize); in InitShaders()
80 shaderReader.Read(shaderBinary, fileSize); in InitShaders()
81 NN_ASSERT(read == fileSize); in InitShaders()
83 pResource->InitResource(shaderBinary, fileSize); in InitShaders()
131 const u32 fileSize = (u32)pFileReader->GetSize(); in InitFont() local
132 if( fileSize <= 0 ) in InitFont()
138 const u32 readBufferSize = fileSize; in InitFont()
/CTR-SDK-4.2.7-SampleDemos/gx/Demo/DrawTexture2d/
Dgx_DrawTexture2d.cpp230 size_t fileSize = file.GetSize(); in GetTextureData() local
231 NN_LOG(" fileSize = %d (Byte)\n", fileSize); in GetTextureData()
232 if ( fileSize == 0 ) in GetTextureData()
238 void* buf = s_AppHeap.Allocate( fileSize, 4 ); in GetTextureData()
240 s32 readSize = file.Read(buf, fileSize); in GetTextureData()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LineSimple/
DLineSimple.cpp147 size_t fileSize = file.GetSize(); in Initialize() local
148 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
150 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/AlphaTest/
Dgx_AlphaTest.cpp244 size_t fileSize = file.GetSize(); in Initialize() local
245 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
247 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/ClipEquation/
DClipEquation.cpp220 size_t fileSize = file.GetSize(); in Initialize() local
221 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
223 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/Draw3d/
Dgx_Draw3d.cpp139 size_t fileSize = file.GetSize(); in InitializeShader() local
140 void* buf = s_AppHeap.Allocate(fileSize); in InitializeShader()
141 s32 read = file.Read(buf, fileSize); in InitializeShader()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorSimple/
DGasColorSimple.cpp168 size_t fileSize = file.GetSize(); in ShaderInitialize() local
169 void* buf = s_AppHeap.Allocate(fileSize); in ShaderInitialize()
171 s32 read = file.Read(buf, fileSize); in ShaderInitialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasColorOptimal/
DGasColorOptimal.cpp151 size_t fileSize = file.GetSize(); in ShaderInitialize() local
152 void* buf = s_AppHeap.Allocate(fileSize); in ShaderInitialize()
154 s32 read = file.Read(buf, fileSize); in ShaderInitialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandCacheSimple/
Dgx_CommandCacheSimple.cpp154 size_t fileSize = file.GetSize(); in InitializeShader() local
155 void* buf = s_AppHeap.Allocate(fileSize); in InitializeShader()
156 s32 read = file.Read(buf, fileSize); in InitializeShader()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingDistanceAtte/
DLightingDistanceAtte.cpp253 size_t fileSize = file.GetSize(); in Initialize() local
254 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
256 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Demo/ScreenCapture/
DTriangleSimple.cpp265 size_t fileSize = file.GetSize(); in Initialize() local
266 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
268 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandCacheVSUniformFrame/
Dgx_CommandCacheVSUniformFrame.cpp186 size_t fileSize = file.GetSize(); in InitializeShader() local
187 void* buf = s_AppHeap.Allocate(fileSize); in InitializeShader()
188 s32 read = file.Read(buf, fileSize); in InitializeShader()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/CommandCacheVSUniformModel/
Dgx_CommandCacheVSUniformModel.cpp196 size_t fileSize = file.GetSize(); in InitializeShader() local
197 void* buf = s_AppHeap.Allocate(fileSize); in InitializeShader()
198 s32 read = file.Read(buf, fileSize); in InitializeShader()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/Fog/
DFog.cpp389 size_t fileSize = file.GetSize(); in Initialize() local
390 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
392 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingSpotAtte/
DLightingSpotAtte.cpp278 size_t fileSize = file.GetSize(); in Initialize() local
279 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
281 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingVertex/
DLightingVertex.cpp316 size_t fileSize = file.GetSize(); in Initialize() local
317 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
319 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/EarlyDepthTestSample/
DEarlyDepthTestSample.cpp332 size_t fileSize = file.GetSize(); in InitShader() local
333 void* buf = s_AppHeap.Allocate(fileSize); in InitShader()
335 s32 read = file.Read(buf, fileSize); in InitShader()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/PartsysGas/
DPartsysGas.cpp288 size_t fileSize = file.GetSize(); in ShaderInitialize() local
289 void* buf = s_AppHeap.Allocate(fileSize); in ShaderInitialize()
291 s32 read = file.Read(buf, fileSize); in ShaderInitialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingToonApple/
DLightingToonApple.cpp397 size_t fileSize = file.GetSize(); in Initialize() local
398 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
400 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/LightingFresnel/
DLightingFresnel.cpp374 size_t fileSize = file.GetSize(); in Initialize() local
375 void* buf = s_AppHeap.Allocate(fileSize); in Initialize()
377 s32 read = file.Read(buf, fileSize); in Initialize()
/CTR-SDK-4.2.7-SampleDemos/gx/DMPGL/GasCessna/
DGasCessna.cpp249 size_t fileSize = file.GetSize(); in ShaderInitialize() local
250 void* buf = s_AppHeap.Allocate(fileSize); in ShaderInitialize()
252 s32 read = file.Read(buf, fileSize); in ShaderInitialize()
/CTR-SDK-4.2.7-SampleDemos/gx/Api/RenderToTexture/
Dgx_RenderToTexture.cpp218 size_t fileSize = file.GetSize(); in InitializeShader() local
219 void* buf = s_AppHeap.Allocate(fileSize); in InitializeShader()
220 s32 read = file.Read(buf, fileSize); in InitializeShader()

12