/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | SamplerValidationTests.cpp | 29 wgpu::SamplerDescriptor samplerDesc; in TEST_F() local 30 samplerDesc.lodMinClamp = NAN; in TEST_F() 31 ASSERT_DEVICE_ERROR(device.CreateSampler(&samplerDesc)); in TEST_F() 34 wgpu::SamplerDescriptor samplerDesc; in TEST_F() local 35 samplerDesc.lodMaxClamp = NAN; in TEST_F() 36 ASSERT_DEVICE_ERROR(device.CreateSampler(&samplerDesc)); in TEST_F() 39 wgpu::SamplerDescriptor samplerDesc; in TEST_F() local 40 samplerDesc.lodMaxClamp = INFINITY; in TEST_F() 41 device.CreateSampler(&samplerDesc); in TEST_F() 44 wgpu::SamplerDescriptor samplerDesc; in TEST_F() local [all …]
|
D | BindGroupValidationTests.cpp | 181 wgpu::SamplerDescriptor samplerDesc; in TEST_F() local 182 samplerDesc.minFilter = static_cast<wgpu::FilterMode>(0xFFFFFFFF); in TEST_F() 185 ASSERT_DEVICE_ERROR(errorSampler = device.CreateSampler(&samplerDesc)); in TEST_F()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlSampler.mm | 63 auto samplerDesc = [[MTLSamplerDescriptor alloc] init]; 64 samplerDesc.rAddressMode = MTLSamplerAddressModeClampToEdge; 65 samplerDesc.sAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeX(), 67 samplerDesc.tAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeY(), 69 samplerDesc.magFilter = minMagFilter; 70 samplerDesc.minFilter = minMagFilter; 71 samplerDesc.mipFilter = mipFilter; 72 samplerDesc.lodMinClamp = 0.0f; 73 samplerDesc.lodMaxClamp = FLT_MAX; // default value according to docs. 74 samplerDesc.maxAnisotropy = 1.0f; [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | RenderStateCache.cpp | 279 D3D11_SAMPLER_DESC samplerDesc; in getSamplerState() local 280 samplerDesc.Filter = in getSamplerState() 283 samplerDesc.AddressU = gl_d3d11::ConvertTextureWrap(samplerState.getWrapS()); in getSamplerState() 284 samplerDesc.AddressV = gl_d3d11::ConvertTextureWrap(samplerState.getWrapT()); in getSamplerState() 285 samplerDesc.AddressW = gl_d3d11::ConvertTextureWrap(samplerState.getWrapR()); in getSamplerState() 286 samplerDesc.MipLODBias = 0; in getSamplerState() 287 samplerDesc.MaxAnisotropy = in getSamplerState() 289 samplerDesc.ComparisonFunc = gl_d3d11::ConvertComparison(samplerState.getCompareFunc()); in getSamplerState() 295 samplerDesc.BorderColor[0] = borderColor.red; in getSamplerState() 296 samplerDesc.BorderColor[1] = borderColor.green; in getSamplerState() [all …]
|
D | SwapChain11.cpp | 704 D3D11_SAMPLER_DESC samplerDesc; in initPassThroughResources() local 705 samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_POINT; in initPassThroughResources() 706 samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP; in initPassThroughResources() 707 samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP; in initPassThroughResources() 708 samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; in initPassThroughResources() 709 samplerDesc.MipLODBias = 0.0f; in initPassThroughResources() 710 samplerDesc.MaxAnisotropy = 0; in initPassThroughResources() 711 samplerDesc.ComparisonFunc = D3D11_COMPARISON_NEVER; in initPassThroughResources() 712 samplerDesc.BorderColor[0] = 0.0f; in initPassThroughResources() 713 samplerDesc.BorderColor[1] = 0.0f; in initPassThroughResources() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | DepthStencilSamplingTests.cpp | 492 wgpu::SamplerDescriptor samplerDesc; in DoDepthCompareRefTest() local 493 samplerDesc.compare = compare; in DoDepthCompareRefTest() 494 wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); in DoDepthCompareRefTest() 539 wgpu::SamplerDescriptor samplerDesc; in DoDepthCompareRefTest() local 540 samplerDesc.compare = compare; in DoDepthCompareRefTest() 541 wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); in DoDepthCompareRefTest() 632 wgpu::SamplerDescriptor samplerDesc; in TEST_P() local 633 wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); in TEST_P()
|
D | ObjectCachingTests.cpp | 308 wgpu::SamplerDescriptor samplerDesc; in TEST_P() local 309 wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); in TEST_P()
|
D | CompressedTextureFormatTests.cpp | 141 wgpu::SamplerDescriptor samplerDesc; in CreateBindGroupForTest() local 142 samplerDesc.minFilter = wgpu::FilterMode::Nearest; in CreateBindGroupForTest() 143 samplerDesc.magFilter = wgpu::FilterMode::Nearest; in CreateBindGroupForTest() 144 wgpu::Sampler sampler = device.CreateSampler(&samplerDesc); in CreateBindGroupForTest()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | SamplerMtl.mm | 36 mtl::SamplerDesc samplerDesc(mState); 39 displayMtl->getStateCache().getSamplerState(displayMtl->getMetalDevice(), samplerDesc);
|
D | TextureMtl.mm | 800 mtl::SamplerDesc samplerDesc(mState.getSamplerState()); 806 samplerDesc.minFilter = MTLSamplerMinMagFilterNearest; 807 samplerDesc.magFilter = MTLSamplerMinMagFilterNearest; 808 if (samplerDesc.mipFilter != MTLSamplerMipFilterNotMipmapped) 810 samplerDesc.mipFilter = MTLSamplerMipFilterNearest; 813 samplerDesc.maxAnisotropy = 1; 817 samplerDesc.rAddressMode = MTLSamplerAddressModeClampToEdge; 818 samplerDesc.sAddressMode = MTLSamplerAddressModeClampToEdge; 819 samplerDesc.tAddressMode = MTLSamplerAddressModeClampToEdge; 822 displayMtl->getStateCache().getSamplerState(displayMtl->getMetalDevice(), samplerDesc);
|
D | mtl_render_utils.mm | 1545 SamplerDesc samplerDesc; 1546 samplerDesc.reset(); 1547 samplerDesc.minFilter = samplerDesc.magFilter = GetFilter(params.filter); 1550 contextMtl->getMetalDevice(), samplerDesc),
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | SamplerHeapCacheD3D12.cpp | 130 const auto& samplerDesc = samplers[i]->GetSamplerDescriptor(); in GetOrCreate() local 131 d3d12Device->CreateSampler(&samplerDesc, in GetOrCreate()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CopyTextureForBrowserHelper.cpp | 335 SamplerDescriptor samplerDesc = {}; in DoCopyTextureForBrowser() local 337 DAWN_TRY_ASSIGN(sampler, device->CreateSampler(&samplerDesc)); in DoCopyTextureForBrowser()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnGpu.cpp | 748 wgpu::SamplerDescriptor samplerDesc; in onRegenerateMipMapLevels() local 749 samplerDesc.minFilter = wgpu::FilterMode::Linear; in onRegenerateMipMapLevels() 750 wgpu::Sampler sampler = fDevice.CreateSampler(&samplerDesc); in onRegenerateMipMapLevels()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | TextureVk.cpp | 1817 vk::SamplerDesc samplerDesc(contextVk, samplerState, false, nullptr, in generateMipmapsWithCompute() local 1819 ANGLE_TRY(renderer->getSamplerCache().getSampler(contextVk, samplerDesc, &sampler)); in generateMipmapsWithCompute() 2740 vk::SamplerDesc samplerDesc(contextVk, mState.getSamplerState(), mState.isStencilMode(), in syncState() local 2742 ANGLE_TRY(renderer->getSamplerCache().getSampler(contextVk, samplerDesc, &mSampler)); in syncState()
|