Home
last modified time | relevance | path

Searched refs:textureDesc (Results 1 – 6 of 6) sorted by relevance

/external/angle/src/tests/egl_tests/
DEGLPresentPathD3D11Test.cpp98 D3D11_TEXTURE2D_DESC textureDesc = {0}; in createPbufferFromClientBufferSurface() local
99 textureDesc.Width = mWindowWidth; in createPbufferFromClientBufferSurface()
100 textureDesc.Height = mWindowWidth; in createPbufferFromClientBufferSurface()
101 textureDesc.Format = DXGI_FORMAT_B8G8R8A8_UNORM; in createPbufferFromClientBufferSurface()
102 textureDesc.MipLevels = 1; in createPbufferFromClientBufferSurface()
103 textureDesc.ArraySize = 1; in createPbufferFromClientBufferSurface()
104 textureDesc.SampleDesc.Count = 1; in createPbufferFromClientBufferSurface()
105 textureDesc.SampleDesc.Quality = 0; in createPbufferFromClientBufferSurface()
106 textureDesc.Usage = D3D11_USAGE_DEFAULT; in createPbufferFromClientBufferSurface()
107 textureDesc.BindFlags = D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE; in createPbufferFromClientBufferSurface()
[all …]
/external/skia/src/gpu/dawn/
DGrDawnTexture.cpp28 wgpu::TextureDescriptor textureDesc; in Make() local
30 textureDesc.usage = in Make()
36 textureDesc.usage |= wgpu::TextureUsage::RenderAttachment; in Make()
39 textureDesc.size.width = dimensions.fWidth; in Make()
40 textureDesc.size.height = dimensions.fHeight; in Make()
41 textureDesc.size.depthOrArrayLayers = 1; in Make()
42 textureDesc.format = format; in Make()
43 textureDesc.mipLevelCount = std::max(mipLevels, 1); in Make()
44 textureDesc.sampleCount = sampleCnt; in Make()
46 wgpu::Texture tex = gpu->device().CreateTexture(&textureDesc); in Make()
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DExternalImageSiblingImpl11.cpp40 D3D11_TEXTURE2D_DESC textureDesc = {}; in initialize() local
41 mTexture.getDesc(&textureDesc); in initialize()
49 mIsRenderable = (textureDesc.BindFlags & D3D11_BIND_RENDER_TARGET) && in initialize()
53 mIsTexturable = (textureDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE) && in initialize()
56 mIsTextureArray = (textureDesc.ArraySize > 1); in initialize()
58 mYUV = (textureDesc.Format == DXGI_FORMAT_NV12 || textureDesc.Format == DXGI_FORMAT_P010 || in initialize()
59 textureDesc.Format == DXGI_FORMAT_P016); in initialize()
DBlit11.cpp1757 D3D11_TEXTURE2D_DESC textureDesc; in initResolveDepthOnly() local
1758 textureDesc.Width = extents.width; in initResolveDepthOnly()
1759 textureDesc.Height = extents.height; in initResolveDepthOnly()
1760 textureDesc.MipLevels = 1; in initResolveDepthOnly()
1761 textureDesc.ArraySize = 1; in initResolveDepthOnly()
1762 textureDesc.Format = format.texFormat; in initResolveDepthOnly()
1763 textureDesc.SampleDesc.Count = 1; in initResolveDepthOnly()
1764 textureDesc.SampleDesc.Quality = 0; in initResolveDepthOnly()
1765 textureDesc.Usage = D3D11_USAGE_DEFAULT; in initResolveDepthOnly()
1766 textureDesc.BindFlags = D3D11_BIND_DEPTH_STENCIL | D3D11_BIND_SHADER_RESOURCE; in initResolveDepthOnly()
[all …]
/external/angle/src/libANGLE/renderer/gl/wgl/
DD3DTextureSurfaceWGL.cpp35 D3D11_TEXTURE2D_DESC textureDesc; in GetD3D11TextureInfo() local
36 texture11->GetDesc(&textureDesc); in GetD3D11TextureInfo()
41 switch (textureDesc.Format) in GetD3D11TextureInfo()
54 << "Unknown client buffer texture format: " << textureDesc.Format; in GetD3D11TextureInfo()
68 *angleFormat = &d3d11_angle::GetFormat(textureDesc.Format); in GetD3D11TextureInfo()
73 *width = textureDesc.Width; in GetD3D11TextureInfo()
77 *height = textureDesc.Height; in GetD3D11TextureInfo()
/external/skqp/src/gpu/mtl/
DGrMtlGpu.mm667 MTLTextureDescriptor* textureDesc = GrGetMTLTextureDescriptor(dstTex);
668 textureDesc.width = srcRect.width();
669 textureDesc.height = srcRect.height();
670 textureDesc.mipmapLevelCount = 1;
671 textureDesc.usage |= MTLTextureUsageRenderTarget;
677 textureDesc,