Home
last modified time | relevance | path

Searched refs:pixelShader (Results 1 – 25 of 29) sorted by relevance

12

/external/swiftshader/src/Renderer/
DSetupProcessor.cpp76 …bool vPosZW = (context->pixelShader && context->pixelShader->vPosDeclared && fullPixelPositionRegi… in update()
89 state.vFace = context->pixelShader && context->pixelShader->vFaceDeclared; in update()
125 if(context->vertexShader && context->pixelShader) in update()
133 if(context->pixelShader->semantic[interpolant][component - project].active()) in update()
138 …if(context->pixelShader->semantic[interpolant][component - project] == context->vertexShader->outp… in update()
147 switch(context->pixelShader->semantic[interpolant][component - project].usage) in update()
159 else if(context->preTransformed && context->pixelShader) in update()
165 int index = context->pixelShader->semantic[interpolant][component].index; in update()
167 switch(context->pixelShader->semantic[interpolant][component].usage) in update()
DContext.cpp299 pixelShader = 0; in init()
593 if(pixelShader) in texCoordActive()
595 usesTexture = pixelShader->usesTexture(coordinate, component) || project; in texCoordActive()
1210 if(pixelShader) in diffuseUsed()
1212 return pixelShader->usesDiffuse(component); in diffuseUsed()
1292 if(pixelShader) in specularUsed()
1294 return pixelShader->usesSpecular(component); in specularUsed()
1397 if(!pixelShader) in textureActive()
1428 return pixelShader->usesTexture(coordinate, component); in textureActive()
1436 return pixelShader ? pixelShader->getVersion() : 0x0000; in pixelShaderVersion()
[all …]
DPixelProcessor.cpp893 if(context->pixelShader) in update()
895 state.shaderID = context->pixelShader->getSerialID(); in update()
902 state.depthOverride = context->pixelShader && context->pixelShader->depthOverride(); in update()
903 state.shaderContainsKill = context->pixelShader ? context->pixelShader->containsKill() : false; in update()
974 if(state.multiSample > 1 && context->pixelShader) in update()
976 state.centroid = context->pixelShader->containsCentroid(); in update()
979 if(!context->pixelShader) in update()
991 if(context->pixelShader) in update()
993 if(context->pixelShader->usesSampler(i)) in update()
1078 if(context->pixelShader->semantic[interpolant][component].active()) in update()
[all …]
DQuadRasterizer.cpp31 …nst PixelProcessor::State &state, const PixelShader *pixelShader) : state(state), shader(pixelShad… in QuadRasterizer() argument
DRenderer.cpp373 if(context->pixelShader) in draw()
408 …xelState.textureStage[stage].stageOperation != TextureStage::STAGE_DISABLE || context->pixelShader) in draw()
2062 void Renderer::loadConstants(const PixelShader *pixelShader) in loadConstants() argument
2064 if(!pixelShader) return; in loadConstants()
2066 size_t count = pixelShader->getLength(); in loadConstants()
2070 const Shader::Instruction *instruction = pixelShader->getInstruction(i); in loadConstants()
2382 context->pixelShader = shader; in setPixelShader()
DContext.hpp479 const PixelShader *pixelShader; member in sw::Context
DRenderer.hpp423 void loadConstants(const PixelShader *pixelShader);
/external/swiftshader/src/D3D9/
DDirect3DStateBlock9.cpp46 pixelShader = 0; in Direct3DStateBlock9()
241 device->SetPixelShader(pixelShader); in Apply()
490 Direct3DPixelShader9 *pixelShader; in Capture() local
491 device->GetPixelShader(reinterpret_cast<IDirect3DPixelShader9**>(&pixelShader)); in Capture()
493 if(pixelShader) in Capture()
495 pixelShader->bind(); in Capture()
496 pixelShader->Release(); in Capture()
499 if(this->pixelShader) in Capture()
501 this->pixelShader->unbind(); in Capture()
504 this->pixelShader = pixelShader; in Capture()
[all …]
DDirect3DPixelShader9.cpp22 …rect3DDevice9 *device, const unsigned long *shaderToken) : device(device), pixelShader(shaderToken) in Direct3DPixelShader9()
117 return &pixelShader; in getPixelShader()
DDirect3DPixelShader9.hpp54 sw::PixelShader pixelShader; member in D3D9::Direct3DPixelShader9
DDirect3DDevice9.cpp83 pixelShader = 0; in Direct3DDevice9()
249 if(pixelShader) in ~Direct3DDevice9()
251 pixelShader->unbind(); in ~Direct3DDevice9()
252 pixelShader = 0; in ~Direct3DDevice9()
1671 if(pixelShader) in GetPixelShader()
1673 pixelShader->AddRef(); in GetPixelShader()
1676 *shader = pixelShader; in GetPixelShader()
2913 Direct3DPixelShader9 *pixelShader = static_cast<Direct3DPixelShader9*>(iPixelShader); in SetPixelShader() local
2917 if(this->pixelShader == pixelShader) in SetPixelShader()
2922 if(pixelShader) in SetPixelShader()
[all …]
DDirect3DStateBlock9.hpp170 Direct3DPixelShader9 *pixelShader; member in D3D9::Direct3DStateBlock9
DDirect3DDevice9.hpp258 Direct3DPixelShader9 *pixelShader; member in D3D9::Direct3DDevice9
/external/swiftshader/src/OpenGL/libGL/
DShader.cpp410 pixelShader = 0; in FragmentShader()
415 delete pixelShader; in ~FragmentShader()
425 return pixelShader; in getShader()
430 return pixelShader; in getPixelShader()
435 delete pixelShader; in createShader()
436 pixelShader = new sw::PixelShader(); in createShader()
441 delete pixelShader; in deleteShader()
442 pixelShader = nullptr; in deleteShader()
DDevice.cpp125 pixelShader = 0; in Device()
411 void Device::setPixelShader(PixelShader *pixelShader) in setPixelShader() argument
413 this->pixelShader = pixelShader; in setPixelShader()
633 if(pixelShader) in bindShaderConstants()
640 Renderer::setPixelShader(pixelShader); // Loads shader constants set with DEF in bindShaderConstants()
641 … pixelShaderConstantsFDirty = pixelShader->dirtyConstantsF; // Shader DEF'ed constants are dirty in bindShaderConstants()
DDevice.hpp87 sw::PixelShader *pixelShader; member in gl::Device
DShader.h133 sw::PixelShader *pixelShader; variable
DContext.cpp1998 sw::PixelShader *pixelShader = programObject->getPixelShader(); in applyShaders() local
2001 device->setPixelShader(pixelShader); in applyShaders()
/external/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp425 pixelShader = 0; in FragmentShader()
430 delete pixelShader; in ~FragmentShader()
440 return pixelShader; in getShader()
445 return pixelShader; in getPixelShader()
450 delete pixelShader; in createShader()
451 pixelShader = new sw::PixelShader(); in createShader()
456 delete pixelShader; in deleteShader()
457 pixelShader = nullptr; in deleteShader()
DDevice.cpp126 pixelShader = nullptr; in Device()
332 void Device::setPixelShader(PixelShader *pixelShader) in setPixelShader() argument
334 this->pixelShader = pixelShader; in setPixelShader()
739 if(pixelShader) in bindShaderConstants()
746 Renderer::setPixelShader(pixelShader); // Loads shader constants set with DEF in bindShaderConstants()
747 … pixelShaderConstantsFDirty = pixelShader->dirtyConstantsF; // Shader DEF'ed constants are dirty in bindShaderConstants()
DShader.h130 sw::PixelShader *pixelShader; variable
DDevice.hpp83 sw::PixelShader *pixelShader; member in es2::Device
/external/webrtc/webrtc/modules/video_render/android/
Dvideo_render_opengles20.cc275 GLuint pixelShader = loadShader(GL_FRAGMENT_SHADER, pFragmentSource); in createProgram() local
276 if (!pixelShader) { in createProgram()
284 glAttachShader(program, pixelShader); in createProgram()
/external/swiftshader/src/OpenGL/compiler/
DOutputASM.cpp308 pixelShader = 0; in OutputASM()
314 pixelShader = shaderObject->getPixelShader(); in OutputASM()
2606 case EvqFragCoord: pixelShader->vPosDeclared = true; return 0; in registerIndex()
2607 case EvqFrontFacing: pixelShader->vFaceDeclared = true; return 1; in registerIndex()
2761 if(pixelShader) in varyingRegister()
2772 …if(componentCount >= 1) pixelShader->semantic[var][0] = sw::Shader::Semantic(sw::Shader::USAGE_TEX… in varyingRegister()
2773 …if(componentCount >= 2) pixelShader->semantic[var][1] = sw::Shader::Semantic(sw::Shader::USAGE_TEX… in varyingRegister()
2774 …if(componentCount >= 3) pixelShader->semantic[var][2] = sw::Shader::Semantic(sw::Shader::USAGE_TEX… in varyingRegister()
2775 …if(componentCount >= 4) pixelShader->semantic[var][3] = sw::Shader::Semantic(sw::Shader::USAGE_TEX… in varyingRegister()
2781 …if(componentCount >= 1) pixelShader->semantic[var + i][0] = sw::Shader::Semantic(sw::Shader::USAGE… in varyingRegister()
[all …]
DOutputASM.h313 sw::PixelShader *pixelShader; variable

12