Home
last modified time | relevance | path

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

/external/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.cpp1306 GrGLTexture::Desc texDesc; in onCreateTexture() local
1307 texDesc.fSize = dimensions; in onCreateTexture()
1313 texDesc.fTarget = GR_GL_TEXTURE_2D; in onCreateTexture()
1319 texDesc.fTarget = GR_GL_TEXTURE_RECTANGLE; in onCreateTexture()
1322 texDesc.fFormat = format.asGLFormat(); in onCreateTexture()
1323 texDesc.fOwnership = GrBackendObjectOwnership::kOwned; in onCreateTexture()
1324 SkASSERT(texDesc.fFormat != GrGLFormat::kUnknown); in onCreateTexture()
1325 SkASSERT(!GrGLFormatIsCompressed(texDesc.fFormat)); in onCreateTexture()
1327 texDesc.fID = this->createTexture(dimensions, texDesc.fFormat, texDesc.fTarget, renderable, in onCreateTexture()
1330 if (!texDesc.fID) { in onCreateTexture()
[all …]
/external/skia/src/gpu/mtl/
DGrMtlTextureRenderTarget.mm71 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
72 texDesc.textureType = MTLTextureType2DMultisample;
73 texDesc.pixelFormat = format;
74 texDesc.width = dimensions.fWidth;
75 texDesc.height = dimensions.fHeight;
76 texDesc.depth = 1;
77 texDesc.mipmapLevelCount = 1;
78 texDesc.sampleCount = sampleCnt;
79 texDesc.arrayLength = 1;
81 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlRenderTarget.mm81 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
82 texDesc.textureType = MTLTextureType2DMultisample;
83 texDesc.pixelFormat = format;
84 texDesc.width = dimensions.fWidth;
85 texDesc.height = dimensions.fHeight;
86 texDesc.depth = 1;
87 texDesc.mipmapLevelCount = 1;
88 texDesc.sampleCount = sampleCnt;
89 texDesc.arrayLength = 1;
91 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlUtil.mm38 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
39 texDesc.textureType = mtlTexture.textureType;
40 texDesc.pixelFormat = mtlTexture.pixelFormat;
41 texDesc.width = mtlTexture.width;
42 texDesc.height = mtlTexture.height;
43 texDesc.depth = mtlTexture.depth;
44 texDesc.mipmapLevelCount = mtlTexture.mipmapLevelCount;
45 texDesc.arrayLength = mtlTexture.arrayLength;
46 texDesc.sampleCount = mtlTexture.sampleCount;
48 texDesc.usage = mtlTexture.usage;
[all …]
DGrMtlGpu.mm565 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
566 texDesc.textureType = MTLTextureType2D;
567 texDesc.pixelFormat = mtlPixelFormat;
568 texDesc.width = dimensions.fWidth;
569 texDesc.height = dimensions.fHeight;
570 texDesc.depth = 1;
571 texDesc.mipmapLevelCount = mipLevelCount;
572 texDesc.sampleCount = 1;
573 texDesc.arrayLength = 1;
577 texDesc.storageMode = MTLStorageModePrivate;
[all …]
DGrMtlTexture.mm77 MTLTextureDescriptor* texDesc,
79 id<MTLTexture> texture = [gpu->device() newTextureWithDescriptor:texDesc];
/external/angle/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()
/external/skqp/src/gpu/mtl/
DGrMtlUtil.mm159 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
160 texDesc.textureType = mtlTexture.textureType;
161 texDesc.pixelFormat = mtlTexture.pixelFormat;
162 texDesc.width = mtlTexture.width;
163 texDesc.height = mtlTexture.height;
164 texDesc.depth = mtlTexture.depth;
165 texDesc.mipmapLevelCount = mtlTexture.mipmapLevelCount;
166 texDesc.arrayLength = mtlTexture.arrayLength;
167 texDesc.sampleCount = mtlTexture.sampleCount;
168 texDesc.usage = mtlTexture.usage;
[all …]
DGrMtlGpu.mm259 MTLTextureDescriptor* texDesc = [[MTLTextureDescriptor alloc] init];
260 texDesc.textureType = MTLTextureType2D;
261 texDesc.pixelFormat = format;
262 texDesc.width = desc.fWidth;
263 texDesc.height = desc.fHeight;
264 texDesc.depth = 1;
265 texDesc.mipmapLevelCount = mipLevels;
266 texDesc.sampleCount = 1;
267 texDesc.arrayLength = 1;
268 texDesc.cpuCacheMode = MTLCPUCacheModeWriteCombined;
[all …]
DGrMtlTextureRenderTarget.mm38 MTLTextureDescriptor* texDesc,
40 id<MTLTexture> renderTexture = [gpu->device() newTextureWithDescriptor:texDesc];
DGrMtlTexture.mm55 MTLTextureDescriptor* texDesc,
61 id<MTLTexture> texture = [gpu->device() newTextureWithDescriptor:texDesc];
/external/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()
/external/skia/src/gpu/dawn/
DGrDawnGpu.cpp673 wgpu::TextureDescriptor texDesc; in onRegenerateMipMapLevels() local
674 texDesc.usage = wgpu::TextureUsage::Sampled | in onRegenerateMipMapLevels()
677 texDesc.size.width = (tex->width() + 1) / 2; in onRegenerateMipMapLevels()
678 texDesc.size.height = (tex->height() + 1) / 2; in onRegenerateMipMapLevels()
679 texDesc.size.depthOrArrayLayers = 1; in onRegenerateMipMapLevels()
680 texDesc.mipLevelCount = levelCount - 1; in onRegenerateMipMapLevels()
681 texDesc.format = src->format(); in onRegenerateMipMapLevels()
682 wgpu::Texture dstTexture = fDevice.CreateTexture(&texDesc); in onRegenerateMipMapLevels()
740 for (uint32_t mipLevel = 0; mipLevel < texDesc.mipLevelCount; mipLevel++) { in onRegenerateMipMapLevels()
/external/angle/src/libANGLE/renderer/metal/
DIOSurfaceSurfaceMtl.mm145 auto texDesc =
151 texDesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
154 [contextMtl->getMetalDevice() newTextureWithDescriptor:texDesc