Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/gpu/gl/
DGrGLTextureRenderTarget.cpp18 const GrGLTexture::Desc& texDesc, in GrGLTextureRenderTarget() argument
21 : GrSurface(gpu, texDesc.fSize, texDesc.fConfig, GrProtected::kNo) in GrGLTextureRenderTarget()
22 , GrGLTexture(gpu, texDesc, nullptr, mipMapsStatus) in GrGLTextureRenderTarget()
23 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, texDesc.fConfig, sampleCount, in GrGLTextureRenderTarget()
30 const GrGLTexture::Desc& texDesc, in GrGLTextureRenderTarget() argument
35 : GrSurface(gpu, texDesc.fSize, texDesc.fConfig, GrProtected::kNo) in GrGLTextureRenderTarget()
36 , GrGLTexture(gpu, texDesc, std::move(parameters), mipMapsStatus) in GrGLTextureRenderTarget()
37 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, texDesc.fConfig, sampleCount, in GrGLTextureRenderTarget()
65 const GrGLTexture::Desc& texDesc, in MakeWrapped() argument
71 gpu, sampleCount, texDesc, std::move(parameters), rtIDs, cacheable, mipMapsStatus)); in MakeWrapped()
DGrGLTextureRenderTarget.h30 const GrGLTexture::Desc& texDesc,
66 const GrGLTexture::Desc& texDesc,
DGrGLGpu.cpp1456 GrGLTexture::Desc texDesc; in onCreateTexture() local
1457 texDesc.fSize = {desc.fWidth, desc.fHeight}; in onCreateTexture()
1458 texDesc.fTarget = GR_GL_TEXTURE_2D; in onCreateTexture()
1459 texDesc.fFormat = format.asGLFormat(); in onCreateTexture()
1460 texDesc.fConfig = desc.fConfig; in onCreateTexture()
1461 texDesc.fOwnership = GrBackendObjectOwnership::kOwned; in onCreateTexture()
1462 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1463 SkASSERT(!GrGLFormatIsCompressed(texDesc.fFormat)); in onCreateTexture()
1468 texDesc.fID = this->createTexture2D({desc.fWidth, desc.fHeight}, in onCreateTexture()
1469 texDesc.fFormat, in onCreateTexture()
[all …]
/third_party/skia/src/gpu/gl/
DGrGLTextureRenderTarget.cpp19 const GrGLTexture::Desc& texDesc, in GrGLTextureRenderTarget() argument
22 : GrSurface(gpu, texDesc.fSize, GrProtected::kNo) in GrGLTextureRenderTarget()
23 , GrGLTexture(gpu, texDesc, nullptr, mipmapStatus) in GrGLTextureRenderTarget()
24 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, sampleCount, rtIDs) { in GrGLTextureRenderTarget()
30 const GrGLTexture::Desc& texDesc, in GrGLTextureRenderTarget() argument
35 : GrSurface(gpu, texDesc.fSize, GrProtected::kNo) in GrGLTextureRenderTarget()
36 , GrGLTexture(gpu, texDesc, std::move(parameters), mipmapStatus) in GrGLTextureRenderTarget()
37 , GrGLRenderTarget(gpu, texDesc.fSize, texDesc.fFormat, sampleCount, in GrGLTextureRenderTarget()
66 const GrGLTexture::Desc& texDesc, in MakeWrapped() argument
72 gpu, sampleCount, texDesc, std::move(parameters), rtIDs, cacheable, mipmapStatus)); in MakeWrapped()
DGrGLTextureRenderTarget.h30 const GrGLTexture::Desc& texDesc,
66 const GrGLTexture::Desc& texDesc,
DGrGLGpu.cpp1368 GrGLTexture::Desc texDesc; in onCreateTexture() local
1369 texDesc.fSize = dimensions; in onCreateTexture()
1375 texDesc.fTarget = GR_GL_TEXTURE_2D; in onCreateTexture()
1381 texDesc.fTarget = GR_GL_TEXTURE_RECTANGLE; in onCreateTexture()
1384 texDesc.fFormat = format.asGLFormat(); in onCreateTexture()
1385 texDesc.fOwnership = GrBackendObjectOwnership::kOwned; in onCreateTexture()
1386 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1387 SkASSERT(!GrGLFormatIsCompressed(texDesc.fFormat)); in onCreateTexture()
1389 texDesc.fID = this->createTexture(dimensions, texDesc.fFormat, texDesc.fTarget, renderable, in onCreateTexture()
1392 if (!texDesc.fID) { in onCreateTexture()
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlTextureRenderTarget.mm69 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
70 texDesc.textureType = MTLTextureType2DMultisample;
71 texDesc.pixelFormat = format;
72 texDesc.width = desc.fWidth;
73 texDesc.height = desc.fHeight;
74 texDesc.depth = 1;
75 texDesc.mipmapLevelCount = 1;
76 texDesc.sampleCount = sampleCnt;
77 texDesc.arrayLength = 1;
78 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlRenderTarget.mm80 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
81 texDesc.textureType = MTLTextureType2DMultisample;
82 texDesc.pixelFormat = format;
83 texDesc.width = desc.fWidth;
84 texDesc.height = desc.fHeight;
85 texDesc.depth = 1;
86 texDesc.mipmapLevelCount = 1;
87 texDesc.sampleCount = sampleCnt;
88 texDesc.arrayLength = 1;
89 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlUtil.mm123 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
124 texDesc.textureType = mtlTexture.textureType;
125 texDesc.pixelFormat = mtlTexture.pixelFormat;
126 texDesc.width = mtlTexture.width;
127 texDesc.height = mtlTexture.height;
128 texDesc.depth = mtlTexture.depth;
129 texDesc.mipmapLevelCount = mtlTexture.mipmapLevelCount;
130 texDesc.arrayLength = mtlTexture.arrayLength;
131 texDesc.sampleCount = mtlTexture.sampleCount;
132 texDesc.usage = mtlTexture.usage;
[all …]
DGrMtlGpu.mm417 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
418 texDesc.textureType = MTLTextureType2D;
419 texDesc.pixelFormat = mtlPixelFormat;
420 texDesc.width = desc.fWidth;
421 texDesc.height = desc.fHeight;
422 texDesc.depth = 1;
423 texDesc.mipmapLevelCount = mipLevels;
424 texDesc.sampleCount = 1;
425 texDesc.arrayLength = 1;
428 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlTexture.mm62 MTLTextureDescriptor* texDesc,
64 id<MTLTexture> texture = [gpu->device() newTextureWithDescriptor:texDesc];
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DTextureSubresourceTests.cpp29 wgpu::TextureDescriptor texDesc; in CreateTexture() local
30 texDesc.dimension = wgpu::TextureDimension::e2D; in CreateTexture()
31 texDesc.size = {kSize, kSize, arrayLayerCount}; in CreateTexture()
32 texDesc.sampleCount = 1; in CreateTexture()
33 texDesc.mipLevelCount = mipLevelCount; in CreateTexture()
34 texDesc.usage = usage; in CreateTexture()
35 texDesc.format = kFormat; in CreateTexture()
36 return device.CreateTexture(&texDesc); in CreateTexture()
DRenderPassDescriptorValidationTests.cpp145 wgpu::TextureDescriptor texDesc; in TEST_F() local
146 texDesc.usage = wgpu::TextureUsage::TextureBinding; in TEST_F()
147 texDesc.size = {1, 1, 1}; in TEST_F()
148 texDesc.format = wgpu::TextureFormat::RGBA8Unorm; in TEST_F()
149 wgpu::Texture sampledTex = device.CreateTexture(&texDesc); in TEST_F()
366 wgpu::TextureDescriptor texDesc; in TEST_F() local
367 texDesc.usage = wgpu::TextureUsage::TextureBinding; in TEST_F()
368 texDesc.size = {1, 1, 1}; in TEST_F()
369 texDesc.format = wgpu::TextureFormat::Depth32Float; in TEST_F()
370 wgpu::Texture sampledTex = device.CreateTexture(&texDesc); in TEST_F()
[all …]
DQueueSubmitValidationTests.cpp310 wgpu::TextureDescriptor texDesc; in TEST_F() local
311 texDesc.size = {1, 1, 1}; in TEST_F()
312 texDesc.usage = wgpu::TextureUsage::TextureBinding; in TEST_F()
313 texDesc.format = wgpu::TextureFormat::RGBA8Unorm; in TEST_F()
317 wgpu::Texture unusedTexture = device.CreateTexture(&texDesc); in TEST_F()
337 wgpu::Texture unusedTexture = device.CreateTexture(&texDesc); in TEST_F()
341 wgpu::Texture usedTexture = device.CreateTexture(&texDesc); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderTarget11.cpp30 D3D11_TEXTURE1D_DESC texDesc; in GetTextureProperties() local
31 texture1D->GetDesc(&texDesc); in GetTextureProperties()
34 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
43 D3D11_TEXTURE2D_DESC texDesc; in GetTextureProperties() local
44 texture2D->GetDesc(&texDesc); in GetTextureProperties()
47 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
48 *samples = texDesc.SampleDesc.Count > 1 ? texDesc.SampleDesc.Count : 0; in GetTextureProperties()
56 D3D11_TEXTURE3D_DESC texDesc; in GetTextureProperties() local
57 texture3D->GetDesc(&texDesc); in GetTextureProperties()
60 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
DTextureStorage11.cpp993 D3D11_TEXTURE2D_DESC texDesc; in TextureStorage11_2D() local
994 mTexture.getDesc(&texDesc); in TextureStorage11_2D()
995 mMipLevels = texDesc.MipLevels; in TextureStorage11_2D()
996 mTextureWidth = texDesc.Width; in TextureStorage11_2D()
997 mTextureHeight = texDesc.Height; in TextureStorage11_2D()
999 mHasKeyedMutex = (texDesc.MiscFlags & D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX) != 0; in TextureStorage11_2D()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderTarget11.cpp30 D3D11_TEXTURE1D_DESC texDesc; in GetTextureProperties() local
31 texture1D->GetDesc(&texDesc); in GetTextureProperties()
34 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
43 D3D11_TEXTURE2D_DESC texDesc; in GetTextureProperties() local
44 texture2D->GetDesc(&texDesc); in GetTextureProperties()
47 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
48 *samples = texDesc.SampleDesc.Count > 1 ? texDesc.SampleDesc.Count : 0; in GetTextureProperties()
56 D3D11_TEXTURE3D_DESC texDesc; in GetTextureProperties() local
57 texture3D->GetDesc(&texDesc); in GetTextureProperties()
60 *mipLevels = texDesc.MipLevels; in GetTextureProperties()
DTextureStorage11.cpp868 D3D11_TEXTURE2D_DESC texDesc; in TextureStorage11_2D() local
869 mTexture.getDesc(&texDesc); in TextureStorage11_2D()
870 mMipLevels = texDesc.MipLevels; in TextureStorage11_2D()
871 mTextureWidth = texDesc.Width; in TextureStorage11_2D()
872 mTextureHeight = texDesc.Height; in TextureStorage11_2D()
874 mHasKeyedMutex = (texDesc.MiscFlags & D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX) != 0; in TextureStorage11_2D()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTextureSubresourceTests.cpp28 wgpu::TextureDescriptor texDesc; in CreateTexture() local
29 texDesc.dimension = wgpu::TextureDimension::e2D; in CreateTexture()
30 texDesc.size = {kSize, kSize, arrayLayerCount}; in CreateTexture()
31 texDesc.sampleCount = 1; in CreateTexture()
32 texDesc.mipLevelCount = mipLevelCount; in CreateTexture()
33 texDesc.usage = usage; in CreateTexture()
34 texDesc.format = kFormat; in CreateTexture()
35 return device.CreateTexture(&texDesc); in CreateTexture()
DTextureZeroInitTests.cpp909 wgpu::TextureDescriptor texDesc; in TEST_P() local
910 texDesc.usage = wgpu::TextureUsage::TextureBinding | wgpu::TextureUsage::RenderAttachment | in TEST_P()
912 texDesc.size = {1, 1, 2}; in TEST_P()
913 texDesc.format = wgpu::TextureFormat::RGBA8Unorm; in TEST_P()
914 wgpu::Texture texture = device.CreateTexture(&texDesc); in TEST_P()
/third_party/skia/tests/
DTraceMemoryDumpTest.cpp171 GrGLTexture::Desc texDesc; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
172 texDesc.fSize = kSize; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
173 texDesc.fTarget = GR_GL_TEXTURE_2D; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
174 texDesc.fID = 17; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
175 texDesc.fFormat = GrGLFormat::kRGBA8; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
176 texDesc.fOwnership = GrBackendObjectOwnership::kOwned; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
185 auto texRT = sk_make_sp<GrGLTextureRenderTarget>(gpu, SkBudgeted::kYes, 8, texDesc, rtIDs, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/ffmpeg/libavutil/
Dhwcontext_d3d11va.c184 D3D11_TEXTURE2D_DESC texDesc = { in d3d11va_alloc_single() local
196 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex); in d3d11va_alloc_single()
210 D3D11_TEXTURE2D_DESC texDesc; in d3d11va_pool_alloc() local
215 ID3D11Texture2D_GetDesc(hwctx->texture, &texDesc); in d3d11va_pool_alloc()
217 if (s->nb_surfaces_used >= texDesc.ArraySize) { in d3d11va_pool_alloc()
234 D3D11_TEXTURE2D_DESC texDesc; in d3d11va_frames_init() local
248 texDesc = (D3D11_TEXTURE2D_DESC){ in d3d11va_frames_init()
264 if (texDesc.Width != texDesc2.Width || in d3d11va_frames_init()
265 texDesc.Height != texDesc2.Height || in d3d11va_frames_init()
266 texDesc.Format != texDesc2.Format) { in d3d11va_frames_init()
[all …]
/third_party/skia/src/gpu/mtl/
DGrMtlUtil.mm41 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
42 texDesc.textureType = mtlTexture.textureType;
43 texDesc.pixelFormat = mtlTexture.pixelFormat;
44 texDesc.width = mtlTexture.width;
45 texDesc.height = mtlTexture.height;
46 texDesc.depth = mtlTexture.depth;
47 texDesc.mipmapLevelCount = mtlTexture.mipmapLevelCount;
48 texDesc.arrayLength = mtlTexture.arrayLength;
49 texDesc.sampleCount = mtlTexture.sampleCount;
51 texDesc.usage = mtlTexture.usage;
[all …]
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp682 wgpu::TextureDescriptor texDesc; in onRegenerateMipMapLevels() local
683 texDesc.usage = wgpu::TextureUsage::TextureBinding | wgpu::TextureUsage::CopySrc | in onRegenerateMipMapLevels()
685 texDesc.size.width = (tex->width() + 1) / 2; in onRegenerateMipMapLevels()
686 texDesc.size.height = (tex->height() + 1) / 2; in onRegenerateMipMapLevels()
687 texDesc.size.depthOrArrayLayers = 1; in onRegenerateMipMapLevels()
688 texDesc.mipLevelCount = levelCount - 1; in onRegenerateMipMapLevels()
689 texDesc.format = src->format(); in onRegenerateMipMapLevels()
690 wgpu::Texture dstTexture = fDevice.CreateTexture(&texDesc); in onRegenerateMipMapLevels()
752 for (uint32_t mipLevel = 0; mipLevel < texDesc.mipLevelCount; mipLevel++) { in onRegenerateMipMapLevels()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DIOSurfaceSurfaceMtl.mm145 auto texDesc =
151 texDesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
154 [contextMtl->getMetalDevice() newTextureWithDescriptor:texDesc