Lines Matching refs:GeometryPass

132 } GeometryPass;  variable
250 MTX34To44(modelWorldMtx, GeometryPass.modelMtx44); in SceneUpdate()
307 CameraInit(GeometryPass.viewprojMtx44); in GeometryPassInit()
309 GeometryPass.color.x = 1.0f; in GeometryPassInit()
310 GeometryPass.color.y = 0.0f; in GeometryPassInit()
311 GeometryPass.color.z = 0.0f; in GeometryPassInit()
312 GeometryPass.color.w = 80.0f / 255.0f; // shininess / 255.0f in GeometryPassInit()
325GeometryPass.attribs[i].attributeBuffer[attribSlot] = LoadModelBuffer(MODEL_FILES[i][attribSlot], in GeometryPassInit()
330 GeometryPass.attribs[i].indexBuffer = LoadModelBuffer(MODEL_FILES[i][MODEL_NUM_ATTRIBUTES], in GeometryPassInit()
339 DEMOGfxLoadShaders(&GeometryPass.shaders, 0, gshBuf); in GeometryPassInit()
347 DEMOGfxInitShaderAttribute(&GeometryPass.shaders, in GeometryPassInit()
355 DEMOGfxGetVertexShaderUniformLocation(&GeometryPass.shaders, "u_modelMtx"); in GeometryPassInit()
356 DEMOGfxGetVertexShaderUniformLocation(&GeometryPass.shaders, "u_viewprojMtx"); in GeometryPassInit()
359 DEMOGfxGetPixelShaderUniformLocation(&GeometryPass.shaders, "u_color"); in GeometryPassInit()
362 DEMOGfxInitFetchShader(&GeometryPass.shaders); in GeometryPassInit()
366 GX2InitColorBuffer(&GeometryPass.myColorBuffer[0], in GeometryPassInit()
371GeometryPass.myColorBufferData[0] = DEMOGfxAllocMEM1(GeometryPass.myColorBuffer[0].surface.imageSi… in GeometryPassInit()
372GeometryPass.myColorBuffer[0].surface.alignment); in GeometryPassInit()
373 GX2InitColorBufferPtr(&GeometryPass.myColorBuffer[0], GeometryPass.myColorBufferData[0]); in GeometryPassInit()
374 GX2SetSurfaceSwizzle(&GeometryPass.myColorBuffer[0].surface, 0); in GeometryPassInit()
376 GX2InitColorBuffer(&GeometryPass.myColorBuffer[1], in GeometryPassInit()
381GeometryPass.myColorBufferData[1] = DEMOGfxAllocMEM1(GeometryPass.myColorBuffer[1].surface.imageSi… in GeometryPassInit()
382GeometryPass.myColorBuffer[1].surface.alignment); in GeometryPassInit()
383 GX2InitColorBufferPtr(&GeometryPass.myColorBuffer[1], GeometryPass.myColorBufferData[1]); in GeometryPassInit()
384 GX2SetSurfaceSwizzle(&GeometryPass.myColorBuffer[1].surface, 2); in GeometryPassInit()
386 GX2InitColorBuffer(&GeometryPass.myColorBuffer[2], in GeometryPassInit()
391GeometryPass.myColorBufferData[2] = DEMOGfxAllocMEM1(GeometryPass.myColorBuffer[2].surface.imageSi… in GeometryPassInit()
392GeometryPass.myColorBuffer[2].surface.alignment); in GeometryPassInit()
393 GX2InitColorBufferPtr(&GeometryPass.myColorBuffer[2], GeometryPass.myColorBufferData[2]); in GeometryPassInit()
394 GX2SetSurfaceSwizzle(&GeometryPass.myColorBuffer[2].surface, 7); in GeometryPassInit()
625 DEMOGfxFreeShaders(&GeometryPass.shaders); in SceneFree()
631 GX2RDestroyBuffer(&GeometryPass.attribs[i].attributeBuffer[attribSlot]); in SceneFree()
634 GX2RDestroyBuffer(&GeometryPass.attribs[i].indexBuffer); in SceneFree()
637 DEMOGfxFreeMEM1(GeometryPass.myColorBufferData[0]); in SceneFree()
638 DEMOGfxFreeMEM1(GeometryPass.myColorBufferData[1]); in SceneFree()
639 DEMOGfxFreeMEM1(GeometryPass.myColorBufferData[2]); in SceneFree()
683 … GX2SetSurfaceSwizzle(&GeometryPass.myColorBuffer[i].surface, swizzleValues[sceneDraws][i]); in SceneDraw()
757 GX2SetColorBuffer(&GeometryPass.myColorBuffer[0], GX2_RENDER_TARGET_0); in GeometryPassDraw()
758 GX2SetColorBuffer(&GeometryPass.myColorBuffer[1], GX2_RENDER_TARGET_1); in GeometryPassDraw()
759 GX2SetColorBuffer(&GeometryPass.myColorBuffer[2], GX2_RENDER_TARGET_2); in GeometryPassDraw()
764 GX2ClearColor(&GeometryPass.myColorBuffer[0], 0.4f, 0.4f, 0.4f, 0.0f); in GeometryPassDraw()
765 GX2ClearColor(&GeometryPass.myColorBuffer[1], 0.0f, 0.0f, 0.0f, 0.0f); in GeometryPassDraw()
766 GX2ClearColor(&GeometryPass.myColorBuffer[2], 0.0f, 0.0f, 0.0f, 0.0f); in GeometryPassDraw()
774 GX2SetShaders(&GeometryPass.shaders.fetchShader, in GeometryPassDraw()
775 GeometryPass.shaders.pVertexShader, in GeometryPassDraw()
776 GeometryPass.shaders.pPixelShader); in GeometryPassDraw()
781 …GX2UTSetAttributeBuffer(&GeometryPass.attribs[s_modelIdx].attributeBuffer[attribSlot], attribSlot,… in GeometryPassDraw()
785 …GX2SetVertexUniformReg(GeometryPass.shaders.uniformsVS.location[uniformVSCount++], 4*4, GeometryPa… in GeometryPassDraw()
786 …GX2SetVertexUniformReg(GeometryPass.shaders.uniformsVS.location[uniformVSCount++], 4*4, GeometryPa… in GeometryPassDraw()
788 …GX2SetPixelUniformReg(GeometryPass.shaders.uniformsPS.location[uniformPSCount], 4, &GeometryPass.c… in GeometryPassDraw()
791 GX2UTDrawIndexed(GX2_PRIMITIVE_TRIANGLES, &GeometryPass.attribs[s_modelIdx].indexBuffer); in GeometryPassDraw()
794 GeometryPass.myColorBuffer[0].surface.imagePtr, in GeometryPassDraw()
795 GeometryPass.myColorBuffer[0].surface.imageSize ); in GeometryPassDraw()
797 GeometryPass.myColorBuffer[1].surface.imagePtr, in GeometryPassDraw()
798 GeometryPass.myColorBuffer[1].surface.imageSize ); in GeometryPassDraw()
800 GeometryPass.myColorBuffer[2].surface.imagePtr, in GeometryPassDraw()
801 GeometryPass.myColorBuffer[2].surface.imageSize ); in GeometryPassDraw()
865 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[0], GeometryPass.myColorBuffer[0].surface.imagePt… in LightingPassDraw()
866 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[1], GeometryPass.myColorBuffer[1].surface.imagePt… in LightingPassDraw()
867 …GX2InitTexturePtrs(&LightingPass.myTextureBuffer[2], GeometryPass.myColorBuffer[2].surface.imagePt… in LightingPassDraw()
930 GeometryPass.myColorBuffer[0].surface.imagePtr, 0); in BuffersPassDraw()
947 GeometryPass.myColorBuffer[1].surface.imagePtr, 0); in BuffersPassDraw()
964 GeometryPass.myColorBuffer[2].surface.imagePtr, 0); in BuffersPassDraw()