Lines Matching refs:pShaders

1683 …er, GFDEndianSwapMode swapMode, GFDAlignMode alignMode, u32 numShader, const GFDShaders2 *pShaders)  in GFDWriteFileShader2()  argument
1688 if (!pShaders) in GFDWriteFileShader2()
1693 if ( GFD_DLL_ABI_TYPE(pShaders->abiVersion) != GFD_DLL_ABI_TYPE(GFD_DLL_ABI_VERSION) || in GFDWriteFileShader2()
1694 GFD_DLL_ABI_VERSION_NUM(pShaders->abiVersion) > 0) in GFDWriteFileShader2()
1736 if(NULL != &pShaders[count]) in GFDWriteFileShader2()
1738 if(NULL != pShaders[count].pVertexShader) in GFDWriteFileShader2()
1740 … if(!GFDWriteFileVertexShaderBlock(fpout, swapMode, alignMode, pShaders[count].pVertexShader)) in GFDWriteFileShader2()
1748 if(NULL != pShaders[count].pPixelShader) in GFDWriteFileShader2()
1750 … if(!GFDWriteFilePixelShaderBlock(fpout, swapMode, alignMode, pShaders[count].pPixelShader)) in GFDWriteFileShader2()
1758 if(NULL != pShaders[count].pGeometryShader) in GFDWriteFileShader2()
1760 … if(!GFDWriteFileGeometryShaderBlock(fpout, swapMode, alignMode, pShaders[count].pGeometryShader)) in GFDWriteFileShader2()
1768 if(NULL != pShaders[count].pComputeShader) in GFDWriteFileShader2()
1770 … if(!GFDWriteFileComputeShaderBlock(fpout, swapMode, alignMode, pShaders[count].pComputeShader)) in GFDWriteFileShader2()
1811 …er, GFDEndianSwapMode swapMode, GFDAlignMode alignMode, u32 numShader, const GFDShaders2 *pShaders) in GFDAppendWriteFileShader2() argument
1817 if (!pShaders) in GFDAppendWriteFileShader2()
1822 if ( GFD_DLL_ABI_TYPE(pShaders->abiVersion) != GFD_DLL_ABI_TYPE(GFD_DLL_ABI_VERSION) || in GFDAppendWriteFileShader2()
1823 GFD_DLL_ABI_VERSION_NUM(pShaders->abiVersion) > 0) in GFDAppendWriteFileShader2()
1865 if(NULL != &pShaders[count]) in GFDAppendWriteFileShader2()
1867 if(NULL != pShaders[count].pVertexShader) in GFDAppendWriteFileShader2()
1869 … if(!GFDWriteFileVertexShaderBlock(fpout, swapMode, alignMode, pShaders[count].pVertexShader)) in GFDAppendWriteFileShader2()
1877 if(NULL != pShaders[count].pPixelShader) in GFDAppendWriteFileShader2()
1879 … if(!GFDWriteFilePixelShaderBlock(fpout, swapMode, alignMode, pShaders[count].pPixelShader)) in GFDAppendWriteFileShader2()
1887 if(NULL != pShaders[count].pGeometryShader) in GFDAppendWriteFileShader2()
1889 … if(!GFDWriteFileGeometryShaderBlock(fpout, swapMode, alignMode, pShaders[count].pGeometryShader)) in GFDAppendWriteFileShader2()
1897 if(NULL != pShaders[count].pComputeShader) in GFDAppendWriteFileShader2()
1899 … if(!GFDWriteFileComputeShaderBlock(fpout, swapMode, alignMode, pShaders[count].pComputeShader)) in GFDAppendWriteFileShader2()
2054 …hSource(char* pFilename, GFDEndianSwapMode swapMode, const GFDShaders2 *pShaders, const GFDShaders… in GFDWriteFileShaderAsCodeWithSource() argument
2077 if ( GFD_DLL_ABI_TYPE(pShaders->abiVersion) != GFD_DLL_ABI_TYPE(GFD_DLL_ABI_VERSION) || in GFDWriteFileShaderAsCodeWithSource()
2078 GFD_DLL_ABI_VERSION_NUM(pShaders->abiVersion) > 0) in GFDWriteFileShaderAsCodeWithSource()
2095 if(NULL != pShaders->pVertexShader) in GFDWriteFileShaderAsCodeWithSource()
2103 (u32 *) pShaders->pVertexShader->initialValues, in GFDWriteFileShaderAsCodeWithSource()
2104pShaders->pVertexShader->numInitialValues * sizeof(GX2UniformInitialValue), ""); in GFDWriteFileShaderAsCodeWithSource()
2109 int nElem = (pShaders->pVertexShader->shaderSize + 0x3) / 4; in GFDWriteFileShaderAsCodeWithSource()
2110 GFDEndianSwap8in32((u32*)pShaders->pVertexShader->shaderPtr, nElem); in GFDWriteFileShaderAsCodeWithSource()
2130 (u32 *) pShaders->pVertexShader->shaderPtr, in GFDWriteFileShaderAsCodeWithSource()
2131 pShaders->pVertexShader->shaderSize, "ALIGNVAR(256)"); in GFDWriteFileShaderAsCodeWithSource()
2134 pShaders->pVertexShader->numUniformBlocks, in GFDWriteFileShaderAsCodeWithSource()
2135 pShaders->pVertexShader->uniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2138 pShaders->pVertexShader->numUniforms, in GFDWriteFileShaderAsCodeWithSource()
2139pShaders->pVertexShader->uniformVars, pShaders->pVertexShader->initialValues); in GFDWriteFileShaderAsCodeWithSource()
2142 (u32 *) pShaders->pVertexShader->_loopVars, in GFDWriteFileShaderAsCodeWithSource()
2143 pShaders->pVertexShader->_numLoops * sizeof(GFDLoopVar), ""); in GFDWriteFileShaderAsCodeWithSource()
2146 pShaders->pVertexShader->numSamplers, in GFDWriteFileShaderAsCodeWithSource()
2147 pShaders->pVertexShader->samplerVars); in GFDWriteFileShaderAsCodeWithSource()
2150 pShaders->pVertexShader->numAttribs, in GFDWriteFileShaderAsCodeWithSource()
2151 pShaders->pVertexShader->attribVars); in GFDWriteFileShaderAsCodeWithSource()
2157 … _GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pVertexShader->_regs, sizeof(GFDVertexShaderRegs)); in GFDWriteFileShaderAsCodeWithSource()
2160 fprintf(fpout, " %u,\n", pShaders->pVertexShader->shaderSize); in GFDWriteFileShaderAsCodeWithSource()
2163 fprintf(fpout, " %s,\n", shaderModeName[(u32)pShaders->pVertexShader->shaderMode]); in GFDWriteFileShaderAsCodeWithSource()
2165 fprintf(fpout, " %u,\n", pShaders->pVertexShader->numUniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2166 if (pShaders->pVertexShader->numUniformBlocks) { in GFDWriteFileShaderAsCodeWithSource()
2172 fprintf(fpout, " %u,\n", pShaders->pVertexShader->numUniforms); in GFDWriteFileShaderAsCodeWithSource()
2173 if (pShaders->pVertexShader->numUniforms) { in GFDWriteFileShaderAsCodeWithSource()
2179 fprintf(fpout, " %u,\n", pShaders->pVertexShader->numInitialValues); in GFDWriteFileShaderAsCodeWithSource()
2180 if (pShaders->pVertexShader->numInitialValues) { in GFDWriteFileShaderAsCodeWithSource()
2186 fprintf(fpout, " %u,\n", pShaders->pVertexShader->_numLoops); in GFDWriteFileShaderAsCodeWithSource()
2187 if (pShaders->pVertexShader->_numLoops) { in GFDWriteFileShaderAsCodeWithSource()
2193 fprintf(fpout, " %u,\n", pShaders->pVertexShader->numSamplers); in GFDWriteFileShaderAsCodeWithSource()
2194 if (pShaders->pVertexShader->numSamplers) { in GFDWriteFileShaderAsCodeWithSource()
2200 fprintf(fpout, " %u,\n", pShaders->pVertexShader->numAttribs); in GFDWriteFileShaderAsCodeWithSource()
2201 if (pShaders->pVertexShader->numAttribs) { in GFDWriteFileShaderAsCodeWithSource()
2207 fprintf(fpout, " %d,\n", (u32)pShaders->pVertexShader->ringItemsize); in GFDWriteFileShaderAsCodeWithSource()
2209 fprintf(fpout, " (GX2Boolean)%d,\n", (u32)pShaders->pVertexShader->hasStreamOut); in GFDWriteFileShaderAsCodeWithSource()
2212 …_GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pVertexShader->streamOutVertexStride, sizeof(u32)*GX… in GFDWriteFileShaderAsCodeWithSource()
2220 if(NULL != pShaders->pPixelShader ) in GFDWriteFileShaderAsCodeWithSource()
2227 (u32 *) pShaders->pPixelShader->initialValues, in GFDWriteFileShaderAsCodeWithSource()
2228pShaders->pPixelShader->numInitialValues * sizeof(GX2UniformInitialValue), ""); in GFDWriteFileShaderAsCodeWithSource()
2233 int nElem = ( pShaders->pPixelShader->shaderSize + 0x3) / 4; in GFDWriteFileShaderAsCodeWithSource()
2234 GFDEndianSwap8in32((u32*) pShaders->pPixelShader->shaderPtr, nElem); in GFDWriteFileShaderAsCodeWithSource()
2254 (u32 *) pShaders->pPixelShader->shaderPtr, in GFDWriteFileShaderAsCodeWithSource()
2255 pShaders->pPixelShader->shaderSize, "ALIGNVAR(256)"); in GFDWriteFileShaderAsCodeWithSource()
2258 pShaders->pPixelShader->numUniformBlocks, in GFDWriteFileShaderAsCodeWithSource()
2259 pShaders->pPixelShader->uniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2262 pShaders->pPixelShader->numUniforms, in GFDWriteFileShaderAsCodeWithSource()
2263pShaders->pPixelShader->uniformVars, pShaders->pPixelShader->initialValues); in GFDWriteFileShaderAsCodeWithSource()
2266 (u32 *) pShaders->pPixelShader->_loopVars, in GFDWriteFileShaderAsCodeWithSource()
2267 pShaders->pPixelShader->_numLoops * sizeof(GFDLoopVar), ""); in GFDWriteFileShaderAsCodeWithSource()
2270 pShaders->pPixelShader->numSamplers, in GFDWriteFileShaderAsCodeWithSource()
2271 pShaders->pPixelShader->samplerVars); in GFDWriteFileShaderAsCodeWithSource()
2277 … _GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pPixelShader->_regs, sizeof(GFDPixelShaderRegs)); in GFDWriteFileShaderAsCodeWithSource()
2280 fprintf(fpout, " %u,\n", pShaders->pPixelShader->shaderSize); in GFDWriteFileShaderAsCodeWithSource()
2283 fprintf(fpout, " %s,\n", shaderModeName[(u32)pShaders->pPixelShader->shaderMode]); in GFDWriteFileShaderAsCodeWithSource()
2285 fprintf(fpout, " %u,\n", pShaders->pPixelShader->numUniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2286 if (pShaders->pPixelShader->numUniformBlocks) { in GFDWriteFileShaderAsCodeWithSource()
2292 fprintf(fpout, " %u,\n", pShaders->pPixelShader->numUniforms); in GFDWriteFileShaderAsCodeWithSource()
2293 if (pShaders->pPixelShader->numUniforms) { in GFDWriteFileShaderAsCodeWithSource()
2299 fprintf(fpout, " %u,\n", pShaders->pPixelShader->numInitialValues); in GFDWriteFileShaderAsCodeWithSource()
2300 if (pShaders->pPixelShader->numInitialValues) { in GFDWriteFileShaderAsCodeWithSource()
2306 fprintf(fpout, " %u,\n", pShaders->pPixelShader->_numLoops); in GFDWriteFileShaderAsCodeWithSource()
2307 if (pShaders->pPixelShader->_numLoops) { in GFDWriteFileShaderAsCodeWithSource()
2313 fprintf(fpout, " %u,\n", pShaders->pPixelShader->numSamplers); in GFDWriteFileShaderAsCodeWithSource()
2314 if (pShaders->pPixelShader->numSamplers) { in GFDWriteFileShaderAsCodeWithSource()
2325 if(NULL != pShaders->pGeometryShader ) in GFDWriteFileShaderAsCodeWithSource()
2332 (u32 *) pShaders->pGeometryShader->initialValues, in GFDWriteFileShaderAsCodeWithSource()
2333pShaders->pGeometryShader->numInitialValues * sizeof(GX2UniformInitialValue), ""); in GFDWriteFileShaderAsCodeWithSource()
2337 int nElem = ( pShaders->pGeometryShader->shaderSize + 0x3) / 4; in GFDWriteFileShaderAsCodeWithSource()
2338 GFDEndianSwap8in32((u32*) pShaders->pGeometryShader->shaderPtr, nElem); in GFDWriteFileShaderAsCodeWithSource()
2358 (u32 *) pShaders->pGeometryShader->shaderPtr, in GFDWriteFileShaderAsCodeWithSource()
2359 pShaders->pGeometryShader->shaderSize, "ALIGNVAR(256)"); in GFDWriteFileShaderAsCodeWithSource()
2364 int nElem = ( pShaders->pGeometryShader->copyShaderSize + 0x3) / 4; in GFDWriteFileShaderAsCodeWithSource()
2365 GFDEndianSwap8in32((u32*) pShaders->pGeometryShader->copyShaderPtr, nElem); in GFDWriteFileShaderAsCodeWithSource()
2369 (u32 *) pShaders->pGeometryShader->copyShaderPtr, in GFDWriteFileShaderAsCodeWithSource()
2370 pShaders->pGeometryShader->copyShaderSize, "ALIGNVAR(256)"); in GFDWriteFileShaderAsCodeWithSource()
2373 pShaders->pGeometryShader->numUniformBlocks, in GFDWriteFileShaderAsCodeWithSource()
2374 pShaders->pGeometryShader->uniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2377 pShaders->pGeometryShader->numUniforms, in GFDWriteFileShaderAsCodeWithSource()
2378pShaders->pGeometryShader->uniformVars, pShaders->pGeometryShader->initialValues); in GFDWriteFileShaderAsCodeWithSource()
2381 (u32 *) pShaders->pGeometryShader->_loopVars, in GFDWriteFileShaderAsCodeWithSource()
2382 pShaders->pGeometryShader->_numLoops * sizeof(GFDLoopVar), ""); in GFDWriteFileShaderAsCodeWithSource()
2385 pShaders->pGeometryShader->numSamplers, in GFDWriteFileShaderAsCodeWithSource()
2386 pShaders->pGeometryShader->samplerVars); in GFDWriteFileShaderAsCodeWithSource()
2392 …_GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pGeometryShader->_regs, sizeof(GFDGeometryShaderRegs… in GFDWriteFileShaderAsCodeWithSource()
2395 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->shaderSize); in GFDWriteFileShaderAsCodeWithSource()
2397 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->copyShaderSize); in GFDWriteFileShaderAsCodeWithSource()
2399 fprintf(fpout, " %s,\n", shaderModeName[(u32)pShaders->pGeometryShader->shaderMode]); in GFDWriteFileShaderAsCodeWithSource()
2401 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->numUniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2402 if (pShaders->pGeometryShader->numUniformBlocks) { in GFDWriteFileShaderAsCodeWithSource()
2408 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->numUniforms); in GFDWriteFileShaderAsCodeWithSource()
2409 if (pShaders->pGeometryShader->numUniforms) { in GFDWriteFileShaderAsCodeWithSource()
2415 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->numInitialValues); in GFDWriteFileShaderAsCodeWithSource()
2416 if (pShaders->pGeometryShader->numInitialValues) { in GFDWriteFileShaderAsCodeWithSource()
2422 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->_numLoops); in GFDWriteFileShaderAsCodeWithSource()
2423 if (pShaders->pGeometryShader->_numLoops) { in GFDWriteFileShaderAsCodeWithSource()
2429 fprintf(fpout, " %u,\n", pShaders->pGeometryShader->numSamplers); in GFDWriteFileShaderAsCodeWithSource()
2430 if (pShaders->pGeometryShader->numSamplers) { in GFDWriteFileShaderAsCodeWithSource()
2436 fprintf(fpout, " %d,\n", (u32)pShaders->pGeometryShader->ringItemsize); in GFDWriteFileShaderAsCodeWithSource()
2438 fprintf(fpout, " (GX2Boolean)%d,\n", (u32)pShaders->pGeometryShader->hasStreamOut); in GFDWriteFileShaderAsCodeWithSource()
2441 …_GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pGeometryShader->streamOutVertexStride, sizeof(u32)*… in GFDWriteFileShaderAsCodeWithSource()
2450 if(NULL != pShaders->pComputeShader) in GFDWriteFileShaderAsCodeWithSource()
2456 (u32 *) pShaders->pComputeShader->initialValues, in GFDWriteFileShaderAsCodeWithSource()
2457pShaders->pComputeShader->numInitialValues * sizeof(GX2UniformInitialValue), ""); in GFDWriteFileShaderAsCodeWithSource()
2462 int nElem = (pShaders->pComputeShader->shaderSize + 0x3) / 4; in GFDWriteFileShaderAsCodeWithSource()
2463 GFDEndianSwap8in32((u32*)pShaders->pComputeShader->shaderPtr, nElem); in GFDWriteFileShaderAsCodeWithSource()
2483 (u32 *) pShaders->pComputeShader->shaderPtr, in GFDWriteFileShaderAsCodeWithSource()
2484 pShaders->pComputeShader->shaderSize, "ALIGNVAR(256)"); in GFDWriteFileShaderAsCodeWithSource()
2487 pShaders->pComputeShader->numUniformBlocks, in GFDWriteFileShaderAsCodeWithSource()
2488 pShaders->pComputeShader->uniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2491 pShaders->pComputeShader->numSamplers, in GFDWriteFileShaderAsCodeWithSource()
2492 pShaders->pComputeShader->samplerVars); in GFDWriteFileShaderAsCodeWithSource()
2495 (u32 *) pShaders->pComputeShader->_loopVars, in GFDWriteFileShaderAsCodeWithSource()
2496 pShaders->pComputeShader->_numLoops * sizeof(GFDLoopVar), ""); in GFDWriteFileShaderAsCodeWithSource()
2499 pShaders->pComputeShader->numUniforms, in GFDWriteFileShaderAsCodeWithSource()
2500pShaders->pComputeShader->uniformVars, pShaders->pComputeShader->initialValues); in GFDWriteFileShaderAsCodeWithSource()
2506 …_GFDWriteWordsAsHex(fpout, (u32 *) &pShaders->pComputeShader->_regs, sizeof(GFDComputeShaderRegs)); in GFDWriteFileShaderAsCodeWithSource()
2509 fprintf(fpout, " %u,\n", pShaders->pComputeShader->shaderSize); in GFDWriteFileShaderAsCodeWithSource()
2513 fprintf(fpout, " %u,\n", pShaders->pComputeShader->numUniformBlocks); in GFDWriteFileShaderAsCodeWithSource()
2514 if (pShaders->pComputeShader->numUniformBlocks) { in GFDWriteFileShaderAsCodeWithSource()
2520 fprintf(fpout, " %u,\n", pShaders->pComputeShader->numUniforms); in GFDWriteFileShaderAsCodeWithSource()
2521 if (pShaders->pComputeShader->numUniforms) { in GFDWriteFileShaderAsCodeWithSource()
2527 fprintf(fpout, " %u,\n", pShaders->pComputeShader->numInitialValues); in GFDWriteFileShaderAsCodeWithSource()
2528 if (pShaders->pComputeShader->numInitialValues) { in GFDWriteFileShaderAsCodeWithSource()
2534 fprintf(fpout, " %u,\n", pShaders->pComputeShader->_numLoops); in GFDWriteFileShaderAsCodeWithSource()
2535 if (pShaders->pComputeShader->_numLoops) { in GFDWriteFileShaderAsCodeWithSource()
2541 fprintf(fpout, " %u,\n", pShaders->pComputeShader->numSamplers); in GFDWriteFileShaderAsCodeWithSource()
2542 if (pShaders->pComputeShader->numSamplers) { in GFDWriteFileShaderAsCodeWithSource()
2548 fprintf(fpout, " %u,\n", pShaders->pComputeShader->layout_size_x); in GFDWriteFileShaderAsCodeWithSource()
2549 fprintf(fpout, " %u,\n", pShaders->pComputeShader->layout_size_y); in GFDWriteFileShaderAsCodeWithSource()
2550 fprintf(fpout, " %u,\n", pShaders->pComputeShader->layout_size_z); in GFDWriteFileShaderAsCodeWithSource()
2551 fprintf(fpout, " (GX2Boolean)%d,\n", (u32)pShaders->pComputeShader->Over64Mode); in GFDWriteFileShaderAsCodeWithSource()
2552 fprintf(fpout, " %d,\n", (u32)pShaders->pComputeShader->numWavesPerSIMD); in GFDWriteFileShaderAsCodeWithSource()
2581 …GFDWriteFileShaderAsCode2(char* pFilename, GFDEndianSwapMode swapMode, const GFDShaders2 *pShaders) in GFDWriteFileShaderAsCode2() argument
2583 if (!pShaders) in GFDWriteFileShaderAsCode2()
2588 if ( GFD_DLL_ABI_TYPE(pShaders->abiVersion) != GFD_DLL_ABI_TYPE(GFD_DLL_ABI_VERSION) || in GFDWriteFileShaderAsCode2()
2589 GFD_DLL_ABI_VERSION_NUM(pShaders->abiVersion) > 0) in GFDWriteFileShaderAsCode2()
2594 return GFDWriteFileShaderAsCodeWithSource(pFilename, swapMode, pShaders, NULL); in GFDWriteFileShaderAsCode2()