Home
last modified time | relevance | path

Searched refs:vertexShader (Results 1 – 25 of 201) sorted by relevance

123456789

/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DContext.cpp304 vertexShader = 0; in init()
495 if(vertexShader) in pointSizeActive()
542 if(vertexShader) in vertexLightingActive()
554 if(vertexShader) in texCoordActive()
558 if(vertexShader->getOutput(T0 + coordinate, component).usage == Shader::USAGE_TEXCOORD) in texCoordActive()
646 if(vertexShader) in vertexNormalActive()
656 if(vertexShader) in vertexLightActive()
666 if(vertexShader) in vertexDiffuseMaterialSourceActive()
683 if(vertexShader) in vertexSpecularMaterialSourceActive()
700 if(vertexShader) in vertexAmbientMaterialSourceActive()
[all …]
DVertexProcessor.cpp767 return !context->vertexShader; in isFixedFunction()
937 if(context->vertexShader) in update()
939 state.shaderID = context->vertexShader->getSerialID(); in update()
946 state.fixedFunction = !context->vertexShader && context->pixelShaderModel() < 0x0300; in update()
947 …state.textureSampling = context->vertexShader ? context->vertexShader->containsTextureSampling() :… in update()
948 …state.positionRegister = context->vertexShader ? context->vertexShader->getPositionRegister() : Po… in update()
949 …state.pointSizeRegister = context->vertexShader ? context->vertexShader->getPointSizeRegister() : … in update()
996 …state.input[i].attribType = context->vertexShader ? context->vertexShader->getAttribType(i) : Vert… in update()
999 if(!context->vertexShader) in update()
1013 if(context->vertexShader->usesSampler(i)) in update()
[all …]
DSetupProcessor.cpp95 if(context->vertexShader) in update()
97 state.positionRegister = context->vertexShader->getPositionRegister(); in update()
98 state.pointSizeRegister = context->vertexShader->getPointSizeRegister(); in update()
123 if(context->vertexShader && context->pixelShader) in update()
137 if(semantic == context->vertexShader->getOutput(i, component - project)) in update()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DMinimumBufferSizeValidationTests.cpp187 const std::string& vertexShader, in CreateRenderPipeline() argument
189 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, vertexShader.c_str()); in CreateRenderPipeline()
209 wgpu::RenderPipeline CreateRenderPipelineWithDefaultLayout(const std::string& vertexShader, in CreateRenderPipelineWithDefaultLayout() argument
211 return CreateRenderPipeline({}, vertexShader, fragShader); in CreateRenderPipelineWithDefaultLayout()
243 wgpu::BindGroupLayout GetBGLFromRenderShaders(const std::string& vertexShader, in GetBGLFromRenderShaders() argument
247 CreateRenderPipelineWithDefaultLayout(vertexShader, fragShader); in GetBGLFromRenderShaders()
330 std::string vertexShader = CreateVertexShaderWithBindings({}); in TEST_F() local
334 CreateRenderPipeline({layout}, vertexShader, fragShader); in TEST_F()
344 std::string vertexShader = CreateVertexShaderWithBindings({}); in TEST_F() local
350 CreateRenderPipeline({layout}, vertexShader, fragShader); in TEST_F()
[all …]
DShaderModuleValidationTests.cpp256 std::string vertexShader = in TEST_F() local
258 utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_F()
264 std::string vertexShader = in TEST_F() local
266 ASSERT_DEVICE_ERROR(utils::CreateShaderModule(device, vertexShader.c_str())); in TEST_F()
358 std::string vertexShader = in TEST_F() local
360 utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_F()
370 std::string vertexShader = in TEST_F() local
372 ASSERT_DEVICE_ERROR(utils::CreateShaderModule(device, vertexShader.c_str())); in TEST_F()
/third_party/vk-gl-cts/framework/randomshaders/
DrsgTest.cpp50 rsg::Shader vertexShader(rsg::Shader::TYPE_VERTEX); in runTest() local
54 generator.generate(programParams, vertexShader, fragmentShader); in runTest()
56 std::cout << "Vertex shader:\n--\n" << vertexShader.getSource() << "--\n"; in runTest()
63 rsg::computeUnifiedUniforms(vertexShader, fragmentShader, uniforms); in runTest()
70 executor.execute(vertexShader, fragmentShader, uniformValues); in runTest()
DrsgProgramGenerator.cpp43 Shader& vertexShader, in generate() argument
65 shaderGen.generate(programParams.vertexParameters, vertexShader, fragmentInputs); in generate()
70 const vector<ShaderInput*>& vertexUniforms = vertexShader.getUniforms(); in generate()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DVertexProcessor.cpp68 …update(const vk::GraphicsState &pipelineState, const sw::SpirvShader *vertexShader, const vk::Inpu… in update() argument
72 state.shaderID = vertexShader->getIdentifier(); in update()
83 state.input[i].attribType = vertexShader->inputs[i * 4].Type; in update()
93 SpirvShader const *vertexShader, in routine() argument
100 VertexRoutine *generator = new VertexProgram(state, pipelineLayout, vertexShader, descriptorSets); in routine()
DSetupProcessor.cpp58 …eState, const sw::SpirvShader *fragmentShader, const sw::SpirvShader *vertexShader, const vk::Atta… in update() argument
81 state.numClipDistances = vertexShader->getNumOutputClipDistances(); in update()
82 state.numCullDistances = vertexShader->getNumOutputCullDistances(); in update()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
Dgl_raii.h182 void makeRaster(const char *vertexShader, const char *fragmentShader) in makeRaster() argument
184 mHandle = CompileProgram(vertexShader, fragmentShader); in makeRaster()
187 void makeRaster(const char *vertexShader, in makeRaster() argument
191 mHandle = CompileProgramWithGS(vertexShader, geometryShader, fragmentShader); in makeRaster()
194 void makeRaster(const char *vertexShader, in makeRaster() argument
199 mHandle = CompileProgramWithTESS(vertexShader, tessControlShader, tessEvaluateShader, in makeRaster()
203 void makeRasterWithTransformFeedback(const char *vertexShader, in makeRasterWithTransformFeedback() argument
208 mHandle = CompileProgramWithTransformFeedback(vertexShader, fragmentShader, tfVaryings, in makeRasterWithTransformFeedback()
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderProgram.cpp70 …ation (sglr::pdec::ShaderProgramDeclaration& decl, const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
72 decl << sglr::pdec::VertexSource(vertexShader.getSource()) in generateProgramDeclaration()
75 …rsg::ShaderInput*>::const_iterator vtxInIter = vertexShader.getInputs().begin(); vtxInIter != vert… in generateProgramDeclaration()
96 …aderProgramDeclaration generateProgramDeclaration (const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
99 …generateProgramDeclaration(decl, vertexShader, fragmentShader, numUnifiedUniforms, unifiedUniforms… in generateProgramDeclaration()
131 RandomShaderProgram::RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragm… in RandomShaderProgram() argument
132 …: sglr::ShaderProgram (generateProgramDeclaration(vertexShader, fragmentShader, numUnifiedUniforms… in RandomShaderProgram()
133 , m_vertexShader (vertexShader) in RandomShaderProgram()
137 , m_positionVar (findShaderOutputByName(vertexShader, "gl_Position")) in RandomShaderProgram()
148 …const rsg::Variable* vertexOutput = findShaderOutputByName(vertexShader, fragInput->getVariable()-… in RandomShaderProgram()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp394 vertexShader = 0; in VertexShader()
399 delete vertexShader; in ~VertexShader()
425 return vertexShader; in getShader()
430 return vertexShader; in getVertexShader()
435 delete vertexShader; in createShader()
436 vertexShader = new sw::VertexShader(); in createShader()
441 delete vertexShader; in deleteShader()
442 vertexShader = nullptr; in deleteShader()
DProgram.cpp139 vertexShader = 0; in Program()
161 if(vertexShader) in ~Program()
163 vertexShader->release(); in ~Program()
176 if(vertexShader) in attachShader()
181 vertexShader = (VertexShader*)shader; in attachShader()
182 vertexShader->addRef(); in attachShader()
203 if(vertexShader != shader) in detachShader()
208 vertexShader->release(); in detachShader()
209 vertexShader = 0; in detachShader()
228 return (vertexShader ? 1 : 0) + (fragmentShader ? 1 : 0); in getAttachedShadersCount()
[all …]
/third_party/vk-gl-cts/modules/egl/
DteglSwapBuffersTests.cpp137 deUint32 vertexShader = 0; in createGLES2Program() local
150 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
155 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
156 gl.compileShader(vertexShader); in createGLES2Program()
166 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
167 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
171 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
191 gl.attachShader(program, vertexShader); in createGLES2Program()
221 gl.deleteShader(vertexShader); in createGLES2Program()
232 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeCoordMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeColorMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglGetFrameTimestampsTests.cpp373 deUint32 vertexShader = 0; in createGLES2Program() local
386 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
391 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
392 gl.compileShader(vertexShader); in createGLES2Program()
402 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
403 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
407 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
427 gl.attachShader(program, vertexShader); in createGLES2Program()
457 gl.deleteShader(vertexShader); in createGLES2Program()
468 if (vertexShader) in createGLES2Program()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
Dgl_raii.h159 void makeRaster(const char *vertexShader, const char *fragmentShader) in makeRaster() argument
161 mHandle = CompileProgram(vertexShader, fragmentShader); in makeRaster()
164 void makeRaster(const char *vertexShader, in makeRaster() argument
168 mHandle = CompileProgramWithGS(vertexShader, geometryShader, fragmentShader); in makeRaster()
171 void makeRasterWithTransformFeedback(const char *vertexShader, in makeRasterWithTransformFeedback() argument
176 mHandle = CompileProgramWithTransformFeedback(vertexShader, fragmentShader, tfVaryings, in makeRasterWithTransformFeedback()
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/asm/vert/
Dfake-builtin-input.asm.vert10 …OpEntryPoint Vertex %vertexShader "main" %in_var_POSITION %gl_Position %gl_FragCoord %out_var_SV_T…
16 OpName %vertexShader "vertexShader"
42 %vertexShader = OpFunction %void None %22
/third_party/skia/third_party/externals/swiftshader/tests/VulkanBenchmarks/
DTriangleBenchmarks.cpp61 const char *vertexShader = R"(#version 310 es in TriangleSolidColor() local
69 return tester.createShaderModule(vertexShader, EShLanguage::EShLangVertex); in TriangleSolidColor()
114 const char *vertexShader = R"(#version 310 es in TriangleInterpolateColor() local
126 return tester.createShaderModule(vertexShader, EShLanguage::EShLangVertex); in TriangleInterpolateColor()
173 const char *vertexShader = R"(#version 310 es in TriangleSampleTexture() local
184 return tester.createShaderModule(vertexShader, EShLanguage::EShLangVertex); in TriangleSampleTexture()
/third_party/vk-gl-cts/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp200 std::ostringstream vertexShader; in createShader() local
204 vertexShader << "attribute mediump vec4 a_static" << attributeNdx << ";\n"; in createShader()
207 vertexShader << "\n"; in createShader()
210 vertexShader << "attribute mediump vec4 a_dyn" << attributeNdx << ";\n"; in createShader()
212 vertexShader in createShader()
219 vertexShader << "\tv_color = "; in createShader()
226 vertexShader << " + "; in createShader()
229 vertexShader << "a_static" << attributeNdx; in createShader()
235 vertexShader << " + "; in createShader()
238 vertexShader << "a_dyn" << attributeNdx; in createShader()
[all …]
/third_party/skia/experimental/webgpu-bazel/src/
Dbindings.cpp34 wgpu::RenderPipeline createRenderPipeline(wgpu::Device device, wgpu::ShaderModule vertexShader, in createRenderPipeline() argument
50 pipelineDescriptor.vertex.module = vertexShader; in createRenderPipeline()
110 wgpu::RenderPipeline makeRenderPipeline(wgpu::ShaderModule vertexShader, in makeRenderPipeline() argument
112 return createRenderPipeline(fDevice, vertexShader, fragmentShader); in makeRenderPipeline()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkPipeline.cpp270 vertexShader.reset(); in destroyPipeline()
286 return (vertexShader.get() && vertexShader->containsImageWrite()) || in containsImageWrite()
295 ASSERT(vertexShader.get() == nullptr); in setShader()
296 vertexShader = spirvShader; in setShader()
315 return vertexShader; in getShader()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DShaderTests.cpp117 std::string vertexShader = R"( in TEST_P() local
126 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_P()
144 std::string vertexShader = R"( in TEST_P() local
162 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_P()
187 std::string vertexShader = R"( in TEST_P() local
205 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_P()
234 std::string vertexShader = R"( in TEST_P() local
252 wgpu::ShaderModule vsModule = utils::CreateShaderModule(device, vertexShader.c_str()); in TEST_P()
/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/
DDrawTests.cpp48 const char *vertexShader = R"(#version 310 es in TEST_F() local
57 return tester.createShaderModule(vertexShader, EShLanguage::EShLangVertex); in TEST_F()

123456789