Home
last modified time | relevance | path

Searched refs:viewDesc (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DVideoViewsValidationTests.cpp46 wgpu::TextureViewDescriptor viewDesc = {}; in TEST_F() local
49 viewDesc.format = wgpu::TextureFormat::R8Uint; in TEST_F()
50 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
51 ASSERT_DEVICE_ERROR(videoTexture.CreateView(&viewDesc)); in TEST_F()
54 viewDesc.format = wgpu::TextureFormat::R8Unorm; in TEST_F()
55 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
56 ASSERT_DEVICE_ERROR(videoTexture.CreateView(&viewDesc)); in TEST_F()
59 viewDesc.format = wgpu::TextureFormat::R8Unorm; in TEST_F()
60 viewDesc.aspect = wgpu::TextureAspect::All; in TEST_F()
61 ASSERT_DEVICE_ERROR(videoTexture.CreateView(&viewDesc)); in TEST_F()
[all …]
DTextureSubresourceTests.cpp42 wgpu::TextureViewDescriptor viewDesc; in CreateTextureView() local
43 viewDesc.format = kFormat; in CreateTextureView()
44 viewDesc.baseArrayLayer = baseArrayLayer; in CreateTextureView()
45 viewDesc.arrayLayerCount = 1; in CreateTextureView()
46 viewDesc.baseMipLevel = baseMipLevel; in CreateTextureView()
47 viewDesc.mipLevelCount = 1; in CreateTextureView()
48 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in CreateTextureView()
49 return texture.CreateView(&viewDesc); in CreateTextureView()
DRenderPassDescriptorValidationTests.cpp561 wgpu::TextureViewDescriptor viewDesc; in TEST_F() local
562 viewDesc.dimension = wgpu::TextureViewDimension::e2DArray; in TEST_F()
563 wgpu::TextureView resolveTextureView = resolveTexture.CreateView(&viewDesc); in TEST_F()
909 wgpu::TextureViewDescriptor viewDesc; in TEST_F() local
910 viewDesc.baseMipLevel = 0; in TEST_F()
911 viewDesc.mipLevelCount = 1; in TEST_F()
912 viewDesc.baseArrayLayer = 0; in TEST_F()
913 viewDesc.arrayLayerCount = 1; in TEST_F()
918 viewDesc.aspect = wgpu::TextureAspect::All; in TEST_F()
920 wgpu::TextureView view = device.CreateTexture(&texDesc).CreateView(&viewDesc); in TEST_F()
[all …]
DBindGroupValidationTests.cpp235 wgpu::TextureViewDescriptor viewDesc; in TEST_F() local
236 viewDesc.format = kDefaultTextureFormat; in TEST_F()
237 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in TEST_F()
238 viewDesc.baseMipLevel = 0; in TEST_F()
239 viewDesc.mipLevelCount = 0; in TEST_F()
240 viewDesc.baseArrayLayer = 0; in TEST_F()
241 viewDesc.arrayLayerCount = 1000; in TEST_F()
244 ASSERT_DEVICE_ERROR(errorView = mSampledTexture.CreateView(&viewDesc)); in TEST_F()
526 wgpu::TextureViewDescriptor viewDesc = {}; in TEST_F() local
528 viewDesc.aspect = wgpu::TextureAspect::DepthOnly; in TEST_F()
[all …]
DResourceUsageTrackingTests.cpp1011 wgpu::TextureViewDescriptor viewDesc = {}; in TEST_F() local
1012 viewDesc.arrayLayerCount = 1; in TEST_F()
1014 wgpu::TextureView viewLayer0 = texture.CreateView(&viewDesc); in TEST_F()
1016 viewDesc.baseArrayLayer = 1; in TEST_F()
1017 wgpu::TextureView viewLayer1 = texture.CreateView(&viewDesc); in TEST_F()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTextureSubresourceTests.cpp41 wgpu::TextureViewDescriptor viewDesc; in CreateTextureView() local
42 viewDesc.format = kFormat; in CreateTextureView()
43 viewDesc.baseArrayLayer = baseArrayLayer; in CreateTextureView()
44 viewDesc.arrayLayerCount = 1; in CreateTextureView()
45 viewDesc.baseMipLevel = baseMipLevel; in CreateTextureView()
46 viewDesc.mipLevelCount = 1; in CreateTextureView()
47 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in CreateTextureView()
48 return texture.CreateView(&viewDesc); in CreateTextureView()
DDepthStencilCopyTests.cpp92 wgpu::TextureViewDescriptor viewDesc = {}; in InitializeDepthTextureRegion() local
93 viewDesc.baseMipLevel = mipLevel; in InitializeDepthTextureRegion()
94 viewDesc.mipLevelCount = 1; in InitializeDepthTextureRegion()
96 utils::ComboRenderPassDescriptor renderPassDesc({}, texture.CreateView(&viewDesc)); in InitializeDepthTextureRegion()
123 wgpu::TextureViewDescriptor viewDesc = {}; in InitializeDepthStencilTextureRegion() local
124 viewDesc.baseMipLevel = mipLevel; in InitializeDepthStencilTextureRegion()
125 viewDesc.mipLevelCount = 1; in InitializeDepthStencilTextureRegion()
127 utils::ComboRenderPassDescriptor renderPassDesc({}, texture.CreateView(&viewDesc)); in InitializeDepthStencilTextureRegion()
DD3D12VideoViewsTests.cpp294 wgpu::TextureViewDescriptor viewDesc; in TEST_P() local
295 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_P()
296 wgpu::TextureView textureView = wgpuTexture.CreateView(&viewDesc); in TEST_P()
346 wgpu::TextureViewDescriptor viewDesc; in TEST_P() local
347 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_P()
348 wgpu::TextureView textureView = wgpuTexture.CreateView(&viewDesc); in TEST_P()
DReadOnlyDepthStencilAttachmentTests.cpp148 wgpu::TextureViewDescriptor viewDesc = {}; in DoTest() local
149 viewDesc.aspect = aspect; in DoTest()
150 wgpu::TextureView depthStencilViewInBindGroup = depthStencilTexture.CreateView(&viewDesc); in DoTest()
DTextureViewTests.cpp693 wgpu::TextureViewDescriptor viewDesc = {}; in TEST_P() local
694 viewDesc.baseArrayLayer = 1; in TEST_P()
695 viewDesc.arrayLayerCount = 1; in TEST_P()
696 wgpu::TextureView view = texture.CreateView(&viewDesc); in TEST_P()
DTextureZeroInitTests.cpp916 wgpu::TextureViewDescriptor viewDesc; in TEST_P() local
917 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in TEST_P()
918 viewDesc.arrayLayerCount = 1; in TEST_P()
920 viewDesc.baseArrayLayer = 0; in TEST_P()
921 wgpu::TextureView attachmentView = texture.CreateView(&viewDesc); in TEST_P()
923 viewDesc.baseArrayLayer = 1; in TEST_P()
924 wgpu::TextureView sampleView = texture.CreateView(&viewDesc); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.cpp1229 wgpu::TextureViewDescriptor viewDesc = {}; in ExpectSampledFloatData() local
1230 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in ExpectSampledFloatData()
1231 viewDesc.baseMipLevel = mipLevel; in ExpectSampledFloatData()
1232 viewDesc.mipLevelCount = 1; in ExpectSampledFloatData()
1233 viewDesc.baseArrayLayer = arrayLayer; in ExpectSampledFloatData()
1234 viewDesc.arrayLayerCount = 1; in ExpectSampledFloatData()
1236 return ExpectSampledFloatDataImpl(texture.CreateView(&viewDesc), "texture_2d<f32>", width, in ExpectSampledFloatData()
1248 wgpu::TextureViewDescriptor viewDesc = {}; in ExpectMultisampledFloatData() local
1249 viewDesc.dimension = wgpu::TextureViewDimension::e2D; in ExpectMultisampledFloatData()
1250 viewDesc.baseMipLevel = mipLevel; in ExpectMultisampledFloatData()
[all …]
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_sampler.c137 SVGA3dShaderResourceViewDesc viewDesc; in svga_validate_pipe_sampler_view() local
176 viewDesc.buffer.firstElement = sv->base.u.buf.offset / elem_size; in svga_validate_pipe_sampler_view()
177 viewDesc.buffer.numElements = sv->base.u.buf.size / elem_size; in svga_validate_pipe_sampler_view()
180 viewDesc.tex.mostDetailedMip = sv->base.u.tex.first_level; in svga_validate_pipe_sampler_view()
181 viewDesc.tex.firstArraySlice = sv->base.u.tex.first_layer; in svga_validate_pipe_sampler_view()
182 viewDesc.tex.mipLevels = (sv->base.u.tex.last_level - in svga_validate_pipe_sampler_view()
192 viewDesc.tex.arraySize = in svga_validate_pipe_sampler_view()
229 &viewDesc); in svga_validate_pipe_sampler_view()
Dsvga_state_constants.c685 SVGA3dShaderResourceViewDesc viewDesc; in emit_rawbuf() local
686 viewDesc.bufferex.firstElement = buffer_offset / 4; in emit_rawbuf()
687 viewDesc.bufferex.numElements = buffer_size / 4; in emit_rawbuf()
688 viewDesc.bufferex.flags = SVGA3D_BUFFEREX_SRV_RAW; in emit_rawbuf()
692 SVGA3D_RESOURCE_BUFFEREX, &viewDesc); in emit_rawbuf()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/
DBindGroupValidationTests.cpp218 dawn::TextureViewDescriptor viewDesc; in TEST_F() local
219 viewDesc.format = dawn::TextureFormat::RGBA8Unorm; in TEST_F()
220 viewDesc.dimension = dawn::TextureViewDimension::e2D; in TEST_F()
221 viewDesc.baseMipLevel = 0; in TEST_F()
222 viewDesc.mipLevelCount = 0; in TEST_F()
223 viewDesc.baseArrayLayer = 0; in TEST_F()
224 viewDesc.arrayLayerCount = 0; in TEST_F()
227 ASSERT_DEVICE_ERROR(errorView = mSampledTexture.CreateView(&viewDesc)); in TEST_F()
/third_party/ffmpeg/libavcodec/
Ddxva2.c524 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC viewDesc = { in d3d11va_create_decoder() local
533 &viewDesc, in d3d11va_create_decoder()
781 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC viewDesc; in ff_dxva2_get_surface_index() local
782 ID3D11VideoDecoderOutputView_GetDesc((ID3D11VideoDecoderOutputView*) surface, &viewDesc); in ff_dxva2_get_surface_index()
783 return viewDesc.Texture2D.ArraySlice; in ff_dxva2_get_surface_index()
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp485 wgpu::TextureViewDescriptor viewDesc; in set_texture() local
488 viewDesc.mipLevelCount = GrSamplerState::MipmapMode::kNone == state.mipmapMode() in set_texture()
491 wgpu::TextureView textureView = tex->texture().CreateView(&viewDesc); in set_texture()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderer11.cpp2189 D3D11_SHADER_RESOURCE_VIEW_DESC viewDesc; in copyImageInternal() local
2190 viewDesc.Format = sourceRenderTarget->getFormatSet().srvFormat; in copyImageInternal()
2191 viewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; in copyImageInternal()
2192 viewDesc.Texture2D.MipLevels = 1; in copyImageInternal()
2193 viewDesc.Texture2D.MostDetailedMip = 0; in copyImageInternal()
2196 ANGLE_TRY(allocateResource(GetImplAs<Context11>(context), viewDesc, tex.get(), &readSRV)); in copyImageInternal()
3246 D3D11_SHADER_RESOURCE_VIEW_DESC viewDesc; in blitRenderbufferRect() local
3247 viewDesc.Format = readFormatSet.srvFormat; in blitRenderbufferRect()
3248 viewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; in blitRenderbufferRect()
3249 viewDesc.Texture2D.MipLevels = 1; in blitRenderbufferRect()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderer11.cpp2510 D3D11_SHADER_RESOURCE_VIEW_DESC viewDesc; in copyImageInternal() local
2511 viewDesc.Format = sourceRenderTarget->getFormatSet().srvFormat; in copyImageInternal()
2512 viewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; in copyImageInternal()
2513 viewDesc.Texture2D.MipLevels = 1; in copyImageInternal()
2514 viewDesc.Texture2D.MostDetailedMip = 0; in copyImageInternal()
2517 ANGLE_TRY(allocateResource(GetImplAs<Context11>(context), viewDesc, tex.get(), &readSRV)); in copyImageInternal()
3577 D3D11_SHADER_RESOURCE_VIEW_DESC viewDesc; in blitRenderbufferRect() local
3578 viewDesc.Format = readFormatSet.srvFormat; in blitRenderbufferRect()
3579 viewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; in blitRenderbufferRect()
3580 viewDesc.Texture2D.MipLevels = 1; in blitRenderbufferRect()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DCommandBufferD3D12.cpp1210 const D3D12_RENDER_TARGET_VIEW_DESC viewDesc = view->GetRTVDescriptor(); in SetupRenderPass() local
1214 ToBackend(view->GetTexture())->GetD3D12Resource(), &viewDesc, baseDescriptor); in SetupRenderPass()
1250 const D3D12_DEPTH_STENCIL_VIEW_DESC viewDesc = view->GetDSVDescriptor( in SetupRenderPass() local
1255 ToBackend(view->GetTexture())->GetD3D12Resource(), &viewDesc, baseDescriptor); in SetupRenderPass()