Home
last modified time | relevance | path

Searched refs:pShader (Results 1 – 10 of 10) sorted by relevance

/CafeSDK-2.12.13-1/system/src/lib/demo/
DdemoGfxShader.c23 BOOL DEMOGfxLoadShaders(DEMOGfxShader *pShader, u32 index, const void *pData) in DEMOGfxLoadShaders() argument
25 memset(pShader, 0, sizeof(DEMOGfxShader)); in DEMOGfxLoadShaders()
28 if(!DEMOGFDReadVertexShader(&pShader->pVertexShader, index, pData)) in DEMOGfxLoadShaders()
33 if(!DEMOGFDReadPixelShader(&pShader->pPixelShader, index, pData)) in DEMOGfxLoadShaders()
39 if(!DEMOGFDReadGeometryShader(&pShader->pGeometryShader, index, pData)) in DEMOGfxLoadShaders()
48 BOOL DEMOGfxInitShaderAttribute(DEMOGfxShader *pShader, const char *name, in DEMOGfxInitShaderAttribute() argument
51 if(!pShader) in DEMOGfxInitShaderAttribute()
63 u32 location = (u32)GX2GetVertexAttribVarLocation(pShader->pVertexShader, name); in DEMOGfxInitShaderAttribute()
67 GX2InitAttribStream(&pShader->attribs[pShader->attribCount], in DEMOGfxInitShaderAttribute()
71 pShader->attribCount++; in DEMOGfxInitShaderAttribute()
[all …]
DdemoGfd.c333 void DEMOGFDFreeVertexShader(GX2VertexShader *pShader) in DEMOGFDFreeVertexShader() argument
335 if(pShader) in DEMOGFDFreeVertexShader()
337 if(pShader->shaderPtr) in DEMOGFDFreeVertexShader()
338 DEMOGfxFreeMEM2(pShader->shaderPtr); in DEMOGFDFreeVertexShader()
340 GX2RDestroyBuffer(&pShader->shaderProgram); in DEMOGFDFreeVertexShader()
342 DEMOFree(pShader); in DEMOGFDFreeVertexShader()
347 void DEMOGFDFreePixelShader(GX2PixelShader *pShader) in DEMOGFDFreePixelShader() argument
349 if(pShader) in DEMOGFDFreePixelShader()
351 if(pShader->shaderPtr) in DEMOGFDFreePixelShader()
352 DEMOGfxFreeMEM2(pShader->shaderPtr); in DEMOGFDFreePixelShader()
[all …]
DdemoFont.c103 static void SetFontTexture(DEMOGfxShader* pShader, FontData_t* pFont);
108 static void InitFontTexture(DEMOGfxShader* pShader, FontData_t* pFont);
109 static void InitShader(DEMOGfxShader* pShader);
503 static void InitFontTexture(DEMOGfxShader* pShader, FontData_t* pFont) in InitFontTexture() argument
537 static void SetFontTexture(DEMOGfxShader* pShader, FontData_t* pFont) in SetFontTexture() argument
540 GX2SetPixelTexture(&pFont->TexData, pShader->samplersPS.location[0]); in SetFontTexture()
545 static void InitShader(DEMOGfxShader* pShader) in InitShader() argument
554 DEMOGfxLoadShaders(pShader, 0, gshBuf); in InitShader()
556 GX2RSetBufferName(&pShader->pVertexShader->shaderProgram, "demoFont VS"); in InitShader()
557 GX2RSetBufferName(&pShader->pPixelShader->shaderProgram, "demoFont PS"); in InitShader()
[all …]
/CafeSDK-2.12.13-1/system/src/lib/demo/headers/cafe/demo/
DdemoGfxShader.h160 BOOL DEMOGfxLoadShaders(DEMOGfxShader *pShader, u32 index, const void *pData);
171 BOOL DEMOGfxInitShaderAttribute(DEMOGfxShader *pShader, const char *name,
180 BOOL DEMOGfxGetVertexShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
188 BOOL DEMOGfxGetPixelShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
196 BOOL DEMOGfxGetGeometryShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
204 BOOL DEMOGfxGetVertexShaderUniformLocation(DEMOGfxShader *pShader, const char *name);
212 BOOL DEMOGfxGetPixelShaderUniformLocation(DEMOGfxShader *pShader, const char *name);
220 BOOL DEMOGfxGetVertexShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
228 BOOL DEMOGfxGetPixelShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
236 BOOL DEMOGfxGetGeometryShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
[all …]
DdemoGfd.h93 void DEMOGFDFreeVertexShader(GX2VertexShader *pShader);
99 void DEMOGFDFreePixelShader(GX2PixelShader *pShader);
105 void DEMOGFDFreeGeometryShader(GX2GeometryShader *pShader);
112 void DEMOGFDFreeComputeShader(GX2ComputeShader *pShader);
/CafeSDK-2.12.13-1/system/include/cafe/demo/
DdemoGfxShader.h160 BOOL DEMOGfxLoadShaders(DEMOGfxShader *pShader, u32 index, const void *pData);
171 BOOL DEMOGfxInitShaderAttribute(DEMOGfxShader *pShader, const char *name,
180 BOOL DEMOGfxGetVertexShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
188 BOOL DEMOGfxGetPixelShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
196 BOOL DEMOGfxGetGeometryShaderSamplerLocation(DEMOGfxShader *pShader, const char *name);
204 BOOL DEMOGfxGetVertexShaderUniformLocation(DEMOGfxShader *pShader, const char *name);
212 BOOL DEMOGfxGetPixelShaderUniformLocation(DEMOGfxShader *pShader, const char *name);
220 BOOL DEMOGfxGetVertexShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
228 BOOL DEMOGfxGetPixelShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
236 BOOL DEMOGfxGetGeometryShaderUniformBlockLocation(DEMOGfxShader *pShader, const char *name);
[all …]
DdemoGfd.h93 void DEMOGFDFreeVertexShader(GX2VertexShader *pShader);
99 void DEMOGFDFreePixelShader(GX2PixelShader *pShader);
105 void DEMOGFDFreeGeometryShader(GX2GeometryShader *pShader);
112 void DEMOGFDFreeComputeShader(GX2ComputeShader *pShader);
/CafeSDK-2.12.13-1/system/src/tool/gfx/include/
DshaderUtils.h452 GSH2_DECLSPEC u32 GSH2API GSH2GetVertexShaderGPRs(const GX2VertexShader * pShader);
461 GSH2_DECLSPEC u32 GSH2API GSH2GetGeometryShaderGPRs(const GX2GeometryShader * pShader);
470 GSH2_DECLSPEC u32 GSH2API GSH2GetPixelShaderGPRs(const GX2PixelShader * pShader);
479 GSH2_DECLSPEC u32 GSH2API GSH2GetVertexShaderStackEntries(const GX2VertexShader * pShader);
488 GSH2_DECLSPEC u32 GSH2API GSH2GetGeometryShaderStackEntries(const GX2GeometryShader * pShader);
497 GSH2_DECLSPEC u32 GSH2API GSH2GetPixelShaderStackEntries(const GX2PixelShader * pShader);
512 GSH2_DECLSPEC u32 GSH2API GSH2CreateSetFetchShaderDL(const GX2FetchShader * pShader, void **display…
528 GSH2_DECLSPEC u32 GSH2API GSH2CreateSetGeometryShaderDL(const GX2GeometryShader * pShader, void **d…
543 GSH2_DECLSPEC u32 GSH2API GSH2CreateSetPixelShaderDL(const GX2PixelShader * pShader, void **display…
558 GSH2_DECLSPEC u32 GSH2API GSH2CreateSetVertexShaderDL(const GX2VertexShader * pShader, void **displ…
[all …]
/CafeSDK-2.12.13-1/system/src/tool/gfx/projects/gshCompile/
DgshCompile.h52 typedef u32 (*PGSH2GetVertexShaderGPRs)(const GX2VertexShader * pShader);
53 typedef u32 (*PGSH2GetGeometryShaderGPRs)(const GX2GeometryShader * pShader);
54 typedef u32 (*PGSH2GetPixelShaderGPRs)(const GX2PixelShader * pShader);
56 typedef u32 (*PGSH2GetVertexShaderStackEntries)(const GX2VertexShader * pShader);
57 typedef u32 (*PGSH2GetGeometryShaderStackEntries)(const GX2GeometryShader * pShader);
58 typedef u32 (*PGSH2GetPixelShaderStackEntries)(const GX2PixelShader * pShader);
/CafeSDK-2.12.13-1/system/include/cafe/gx2/
Dgx2Shaders.h489 u32 GX2API GX2GetVertexShaderGPRs(const GX2VertexShader * pShader);
498 u32 GX2API GX2GetVertexShaderStackEntries(const GX2VertexShader * pShader);
512 u32 GX2API GX2GetGeometryShaderGPRs(const GX2GeometryShader * pShader);
521 u32 GX2API GX2GetGeometryShaderStackEntries(const GX2GeometryShader * pShader);
534 u32 GX2API GX2GetPixelShaderGPRs(const GX2PixelShader * pShader);
543 u32 GX2API GX2GetPixelShaderStackEntries(const GX2PixelShader * pShader);