Home
last modified time | relevance | path

Searched refs:pipelineDescriptor (Results 1 – 25 of 44) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/
DWireCreatePipelineAsyncTests.cpp160 WGPURenderPipelineDescriptor pipelineDescriptor{}; in TEST_F() local
161 pipelineDescriptor.vertex.module = vsModule; in TEST_F()
162 pipelineDescriptor.vertex.entryPoint = "main"; in TEST_F()
167 pipelineDescriptor.fragment = &fragment; in TEST_F()
169 wgpuDeviceCreateRenderPipelineAsync(device, &pipelineDescriptor, in TEST_F()
193 WGPURenderPipelineDescriptor pipelineDescriptor{}; in TEST_F() local
194 pipelineDescriptor.vertex.module = vsModule; in TEST_F()
195 pipelineDescriptor.vertex.entryPoint = "main"; in TEST_F()
200 pipelineDescriptor.fragment = &fragment; in TEST_F()
202 wgpuDeviceCreateRenderPipelineAsync(device, &pipelineDescriptor, in TEST_F()
[all …]
DWireOptionalTests.cpp115 WGPURenderPipelineDescriptor pipelineDescriptor = {}; in TEST_F() local
117 pipelineDescriptor.vertex.module = vsModule; in TEST_F()
118 pipelineDescriptor.vertex.entryPoint = "main"; in TEST_F()
119 pipelineDescriptor.vertex.bufferCount = 0; in TEST_F()
120 pipelineDescriptor.vertex.buffers = nullptr; in TEST_F()
127 pipelineDescriptor.fragment = &fragment; in TEST_F()
129 pipelineDescriptor.multisample.count = 1; in TEST_F()
130 pipelineDescriptor.multisample.mask = 0xFFFFFFFF; in TEST_F()
131 pipelineDescriptor.multisample.alphaToCoverageEnabled = false; in TEST_F()
132 pipelineDescriptor.layout = layout; in TEST_F()
[all …]
DWireArgumentTests.cpp144 WGPURenderPipelineDescriptor pipelineDescriptor = {}; in TEST_F() local
146 pipelineDescriptor.vertex.module = vsModule; in TEST_F()
147 pipelineDescriptor.vertex.entryPoint = "main"; in TEST_F()
148 pipelineDescriptor.vertex.bufferCount = 0; in TEST_F()
149 pipelineDescriptor.vertex.buffers = nullptr; in TEST_F()
156 pipelineDescriptor.fragment = &fragment; in TEST_F()
158 pipelineDescriptor.multisample.count = 1; in TEST_F()
159 pipelineDescriptor.multisample.mask = 0xFFFFFFFF; in TEST_F()
160 pipelineDescriptor.multisample.alphaToCoverageEnabled = false; in TEST_F()
161 pipelineDescriptor.layout = layout; in TEST_F()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/wire/
DWireOptionalTests.cpp132 DawnRenderPipelineDescriptor pipelineDescriptor; in TEST_F() local
133 pipelineDescriptor.nextInChain = nullptr; in TEST_F()
139 pipelineDescriptor.vertexStage = &vertexStage; in TEST_F()
145 pipelineDescriptor.fragmentStage = &fragmentStage; in TEST_F()
147 pipelineDescriptor.colorStateCount = 1; in TEST_F()
149 pipelineDescriptor.colorStates = colorStatesPtr; in TEST_F()
151 pipelineDescriptor.sampleCount = 1; in TEST_F()
152 pipelineDescriptor.sampleMask = 0xFFFFFFFF; in TEST_F()
153 pipelineDescriptor.alphaToCoverageEnabled = false; in TEST_F()
154 pipelineDescriptor.layout = layout; in TEST_F()
[all …]
DWireArgumentTests.cpp162 DawnRenderPipelineDescriptor pipelineDescriptor; in TEST_F() local
163 pipelineDescriptor.nextInChain = nullptr; in TEST_F()
169 pipelineDescriptor.vertexStage = &vertexStage; in TEST_F()
175 pipelineDescriptor.fragmentStage = &fragmentStage; in TEST_F()
177 pipelineDescriptor.colorStateCount = 1; in TEST_F()
179 pipelineDescriptor.colorStates = colorStatesPtr; in TEST_F()
181 pipelineDescriptor.sampleCount = 1; in TEST_F()
182 pipelineDescriptor.sampleMask = 0xFFFFFFFF; in TEST_F()
183 pipelineDescriptor.alphaToCoverageEnabled = false; in TEST_F()
184 pipelineDescriptor.layout = layout; in TEST_F()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DSamplerFilterAnisotropicTests.cpp79 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in SetUp() local
80 pipelineDescriptor.vertex.module = vsModule; in SetUp()
81 pipelineDescriptor.cFragment.module = fsModule; in SetUp()
82 pipelineDescriptor.cBuffers[0].attributeCount = 2; in SetUp()
83 pipelineDescriptor.cAttributes[0].format = wgpu::VertexFormat::Float32x4; in SetUp()
84 pipelineDescriptor.cAttributes[1].shaderLocation = 1; in SetUp()
85 pipelineDescriptor.cAttributes[1].offset = 4 * sizeof(float); in SetUp()
86 pipelineDescriptor.cAttributes[1].format = wgpu::VertexFormat::Float32x2; in SetUp()
87 pipelineDescriptor.vertex.bufferCount = 1; in SetUp()
88 pipelineDescriptor.cBuffers[0].arrayStride = 6 * sizeof(float); in SetUp()
[all …]
DClipSpaceTests.cpp23 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in CreatePipelineForTest() local
28 pipelineDescriptor.vertex.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
41 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
46 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(); in CreatePipelineForTest()
49 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
DCullingTests.cpp23 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in CreatePipelineForTest() local
28 pipelineDescriptor.vertex.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
44 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreatePipelineForTest()
53 pipelineDescriptor.primitive.frontFace = frontFace; in CreatePipelineForTest()
54 pipelineDescriptor.primitive.cullMode = cullMode; in CreatePipelineForTest()
56 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
DDepthStencilSamplingTests.cpp125 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in CreateSamplingRenderPipeline() local
137 pipelineDescriptor.vertex.module = vsModule; in CreateSamplingRenderPipeline()
138 pipelineDescriptor.cFragment.module = fsModule; in CreateSamplingRenderPipeline()
139 pipelineDescriptor.primitive.topology = wgpu::PrimitiveTopology::PointList; in CreateSamplingRenderPipeline()
140 pipelineDescriptor.cTargets[0].writeMask = wgpu::ColorWriteMask::None; in CreateSamplingRenderPipeline()
142 return device.CreateRenderPipeline(&pipelineDescriptor); in CreateSamplingRenderPipeline()
156 wgpu::ComputePipelineDescriptor pipelineDescriptor; in CreateSamplingComputePipeline() local
157 pipelineDescriptor.compute.module = csModule; in CreateSamplingComputePipeline()
158 pipelineDescriptor.compute.entryPoint = "main"; in CreateSamplingComputePipeline()
160 return device.CreateComputePipeline(&pipelineDescriptor); in CreateSamplingComputePipeline()
[all …]
DTexture3DTests.cpp54 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in TEST_P() local
55 pipelineDescriptor.vertex.module = vsModule; in TEST_P()
56 pipelineDescriptor.cFragment.module = fsModule; in TEST_P()
57 pipelineDescriptor.cTargets[0].format = renderPass.colorFormat; in TEST_P()
58 wgpu::RenderPipeline pipeline = device.CreateRenderPipeline(&pipelineDescriptor); in TEST_P()
DReadOnlyDepthStencilAttachmentTests.cpp65 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in CreateRenderPipeline() local
73 pipelineDescriptor.vertex.module = utils::CreateShaderModule(device, R"( in CreateRenderPipeline()
87 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreateRenderPipeline()
97 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreateRenderPipeline()
101 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreateRenderPipeline()
111 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreateRenderPipeline()
115 return device.CreateRenderPipeline(&pipelineDescriptor); in CreateRenderPipeline()
DSamplerTests.cpp79 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in SetUp() local
80 pipelineDescriptor.vertex.module = vsModule; in SetUp()
81 pipelineDescriptor.cFragment.module = fsModule; in SetUp()
82 pipelineDescriptor.cTargets[0].format = mRenderPass.colorFormat; in SetUp()
84 mPipeline = device.CreateRenderPipeline(&pipelineDescriptor); in SetUp()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DClipSpaceTests.cpp23 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in CreatePipelineForTest() local
39 pipelineDescriptor.cVertexStage.module = in CreatePipelineForTest()
48 pipelineDescriptor.cFragmentStage.module = in CreatePipelineForTest()
51 pipelineDescriptor.cDepthStencilState.depthCompare = dawn::CompareFunction::LessEqual; in CreatePipelineForTest()
52 pipelineDescriptor.depthStencilState = &pipelineDescriptor.cDepthStencilState; in CreatePipelineForTest()
54 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
DCullingTests.cpp23 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in CreatePipelineForTest() local
39 pipelineDescriptor.cVertexStage.module = in CreatePipelineForTest()
51 pipelineDescriptor.cFragmentStage.module = in CreatePipelineForTest()
55 pipelineDescriptor.cRasterizationState.frontFace = frontFace; in CreatePipelineForTest()
56 pipelineDescriptor.cRasterizationState.cullMode = cullMode; in CreatePipelineForTest()
58 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
DMultisampledRenderingTests.cpp190 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in CreateRenderPipelineForTest() local
200 pipelineDescriptor.cVertexStage.module = in CreateRenderPipelineForTest()
203 pipelineDescriptor.cFragmentStage.module = in CreateRenderPipelineForTest()
212 pipelineDescriptor.layout = pipelineLayout; in CreateRenderPipelineForTest()
215 pipelineDescriptor.cDepthStencilState.format = kDepthStencilFormat; in CreateRenderPipelineForTest()
216 pipelineDescriptor.cDepthStencilState.depthWriteEnabled = true; in CreateRenderPipelineForTest()
217 pipelineDescriptor.cDepthStencilState.depthCompare = dawn::CompareFunction::Less; in CreateRenderPipelineForTest()
218 pipelineDescriptor.depthStencilState = &pipelineDescriptor.cDepthStencilState; in CreateRenderPipelineForTest()
221 pipelineDescriptor.sampleCount = kSampleCount; in CreateRenderPipelineForTest()
223 pipelineDescriptor.colorStateCount = numColorAttachments; in CreateRenderPipelineForTest()
[all …]
DSamplerTests.cpp76 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in SetUp() local
77 pipelineDescriptor.layout = pipelineLayout; in SetUp()
78 pipelineDescriptor.cVertexStage.module = vsModule; in SetUp()
79 pipelineDescriptor.cFragmentStage.module = fsModule; in SetUp()
80 pipelineDescriptor.cColorStates[0]->format = mRenderPass.colorFormat; in SetUp()
82 mPipeline = device.CreateRenderPipeline(&pipelineDescriptor); in SetUp()
DViewportTests.cpp23 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in CreatePipelineForTest() local
47 pipelineDescriptor.cVertexStage.module = in CreatePipelineForTest()
57 pipelineDescriptor.cFragmentStage.module = in CreatePipelineForTest()
60 pipelineDescriptor.cDepthStencilState.depthCompare = depthCompare; in CreatePipelineForTest()
61 pipelineDescriptor.depthStencilState = &pipelineDescriptor.cDepthStencilState; in CreatePipelineForTest()
63 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipelineForTest()
DBindGroupTests.cpp215 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in TEST_P() local
216 pipelineDescriptor.layout = pipelineLayout; in TEST_P()
217 pipelineDescriptor.cVertexStage.module = vsModule; in TEST_P()
218 pipelineDescriptor.cFragmentStage.module = fsModule; in TEST_P()
219 pipelineDescriptor.cColorStates[0]->format = renderPass.colorFormat; in TEST_P()
221 dawn::RenderPipeline pipeline = device.CreateRenderPipeline(&pipelineDescriptor); in TEST_P()
431 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in TEST_P() local
432 pipelineDescriptor.layout = pipelineLayout; in TEST_P()
433 pipelineDescriptor.cVertexStage.module = vsModule; in TEST_P()
434 pipelineDescriptor.cFragmentStage.module = fsModule; in TEST_P()
[all …]
DDynamicBufferOffsetTests.cpp90 utils::ComboRenderPipelineDescriptor pipelineDescriptor(device); in CreateRenderPipeline() local
91 pipelineDescriptor.cVertexStage.module = vsModule; in CreateRenderPipeline()
92 pipelineDescriptor.cFragmentStage.module = fsModule; in CreateRenderPipeline()
93 pipelineDescriptor.cColorStates[0]->format = dawn::TextureFormat::RGBA8Unorm; in CreateRenderPipeline()
96 pipelineDescriptor.layout = pipelineLayout; in CreateRenderPipeline()
98 return device.CreateRenderPipeline(&pipelineDescriptor); in CreateRenderPipeline()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm401 auto pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init];
408 pipelineDescriptor.label = @(description.c_str());
453 pipelineDescriptor.vertexDescriptor = vertexDescriptor;
476 pipelineDescriptor.colorAttachments[0] = mtlColorAttachment;
479 pipelineDescriptor.stencilAttachmentPixelFormat = (MTLPixelFormat) reader->readInt();
481 return pipelineDescriptor;
503 auto pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init];
508 pipelineDescriptor.label = @(description.c_str());
514 pipelineDescriptor.vertexDescriptor = create_vertex_descriptor(programInfo.geomProc(),
522 pipelineDescriptor.colorAttachments[0] = create_color_attachment(pixelFormat,
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DPipelineAndPassCompatibilityTests.cpp34 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in CreatePipeline() local
35 pipelineDescriptor.vertex.module = utils::CreateShaderModule(device, R"( in CreatePipeline()
39 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in CreatePipeline()
42 pipelineDescriptor.cFragment.targets = nullptr; in CreatePipeline()
43 pipelineDescriptor.cFragment.targetCount = 0; in CreatePipeline()
46 wgpu::DepthStencilState* depthStencil = pipelineDescriptor.EnableDepthStencil(format); in CreatePipeline()
53 return device.CreateRenderPipeline(&pipelineDescriptor); in CreatePipeline()
/third_party/skia/experimental/webgpu-bazel/src/
Dbindings.cpp48 wgpu::RenderPipelineDescriptor pipelineDescriptor{}; in createRenderPipeline() local
49 pipelineDescriptor.layout = device.CreatePipelineLayout(&pl); in createRenderPipeline()
50 pipelineDescriptor.vertex.module = vertexShader; in createRenderPipeline()
51 pipelineDescriptor.vertex.entryPoint = "main"; // assumes main() is defined in vertex code in createRenderPipeline()
52 pipelineDescriptor.fragment = &fragmentState; in createRenderPipeline()
53 pipelineDescriptor.primitive.topology = wgpu::PrimitiveTopology::TriangleList; in createRenderPipeline()
54 return device.CreateRenderPipeline(&pipelineDescriptor); in createRenderPipeline()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm320 auto pipelineDescriptor = [MTLRenderPipelineDescriptor new];
364 pipelineDescriptor.vertexFunction = vertexFunction;
365 pipelineDescriptor.fragmentFunction = fragmentFunction;
366 pipelineDescriptor.vertexDescriptor = create_vertex_descriptor(primProc);
367 pipelineDescriptor.colorAttachments[0] = create_color_attachment(this->config(), pipeline);
368 pipelineDescriptor.sampleCount = renderTarget->numSamples();
371 pipelineDescriptor.stencilAttachmentPixelFormat =
375 SkASSERT(pipelineDescriptor.vertexFunction);
376 SkASSERT(pipelineDescriptor.fragmentFunction);
377 SkASSERT(pipelineDescriptor.vertexDescriptor);
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
DD3D12DescriptorHeapTests.cpp443 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in TEST_P() local
444 pipelineDescriptor.vertex.module = mSimpleVSModule; in TEST_P()
446 pipelineDescriptor.cFragment.module = utils::CreateShaderModule(device, R"( in TEST_P()
464 pipelineDescriptor.cTargets[0].format = wgpu::TextureFormat::R16Float; in TEST_P()
465 pipelineDescriptor.cTargets[0].blend = &blend; in TEST_P()
467 wgpu::RenderPipeline renderPipeline = device.CreateRenderPipeline(&pipelineDescriptor); in TEST_P()
519 utils::ComboRenderPipelineDescriptor pipelineDescriptor; in TEST_P() local
520 pipelineDescriptor.vertex.module = mSimpleVSModule; in TEST_P()
521 pipelineDescriptor.cFragment.module = mSimpleFSModule; in TEST_P()
522 pipelineDescriptor.cTargets[0].format = renderPass.colorFormat; in TEST_P()
[all …]
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_metal.mm369 MTLRenderPipelineDescriptor *pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init];
370 pipelineDescriptor.vertexFunction = vertexFunction;
371 pipelineDescriptor.fragmentFunction = fragmentFunction;
372 pipelineDescriptor.vertexDescriptor = vertexDescriptor;
373 pipelineDescriptor.sampleCount = self.framebufferDescriptor.sampleCount;
374pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat;
375 pipelineDescriptor.colorAttachments[0].blendingEnabled = YES;
376 pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd;
377 pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd;
378 pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
[all …]

12