Home
last modified time | relevance | path

Searched refs:UsageFlags (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/src/gpu/
DGrAttachment.h27 enum class UsageFlags : uint8_t { enum
32 GR_DECL_BITFIELD_CLASS_OPS_FRIENDS(UsageFlags);
36 UsageFlags supportedUsages() const { return fSupportedUsages; } in supportedUsages()
53 UsageFlags requiredUsage,
65 UsageFlags requiredUsage,
73 GrAttachment(GrGpu* gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt,
88 if (fSupportedUsages == UsageFlags::kStencilAttachment) { in getResourceType()
96 UsageFlags fSupportedUsages;
105 GR_MAKE_BITFIELD_CLASS_OPS(GrAttachment::UsageFlags)
DGrAttachment.cpp25 if (!(fSupportedUsages & UsageFlags::kTexture) && fMemoryless == GrMemoryless::kNo) { in onGpuMemorySize()
41 GrAttachment::UsageFlags requiredUsage, in build_key()
67 UsageFlags requiredUsage, in ComputeSharedAttachmentUniqueKey()
83 UsageFlags requiredUsage, in ComputeScratchKey()
97 if (!SkToBool(fSupportedUsages & UsageFlags::kStencilAttachment)) { in computeScratchKey()
DGrResourceProvider.cpp621 GrAttachment::UsageFlags::kStencilAttachment, numStencilSamples, GrMipmapped::kNo, in attachStencilAttachment()
667 GrAttachment::UsageFlags::kColorAttachment, in getDiscardableMSAAAttachment()
736 GrAttachment::UsageFlags::kColorAttachment, sampleCnt, in refScratchMSAAAttachment()
/third_party/skia/src/gpu/mtl/
DGrMtlAttachment.mm21 UsageFlags supportedUsages,
33 UsageFlags supportedUsages,
53 return GrMtlAttachment::Make(gpu, dimensions, UsageFlags::kStencilAttachment, sampleCnt, format,
67 return GrMtlAttachment::Make(gpu, dimensions, UsageFlags::kColorAttachment, sampleCnt, format,
84 UsageFlags usageFlags = UsageFlags::kTexture;
86 usageFlags |= UsageFlags::kColorAttachment;
98 UsageFlags attachmentUsages,
120 if (attachmentUsages == UsageFlags::kStencilAttachment) {
122 } else if (SkToBool(attachmentUsages & UsageFlags::kColorAttachment)) {
124 if (SkToBool(attachmentUsages & UsageFlags::kTexture)) {
[all …]
DGrMtlAttachment.h41 UsageFlags attachmentUsages,
65 UsageFlags attachmentUsages,
75 UsageFlags supportedUsages,
81 UsageFlags supportedUsages,
DGrMtlTextureRenderTarget.mm114 GrAttachment::UsageFlags textureUsageFlags = GrAttachment::UsageFlags::kTexture |
115 GrAttachment::UsageFlags::kColorAttachment;
DGrMtlTexture.mm104 GrAttachment::UsageFlags::kTexture, cacheable);
DGrMtlRenderTarget.mm58 GrAttachment::UsageFlags::kColorAttachment,
/third_party/skia/src/gpu/gl/
DGrGLAttachment.h31 UsageFlags supportedUsages, in MakeWrappedRenderBuffer()
56 UsageFlags supportedUsages, in GrGLAttachment()
63 SkASSERT(supportedUsages == UsageFlags::kStencilAttachment || in GrGLAttachment()
64 supportedUsages == UsageFlags::kColorAttachment); in GrGLAttachment()
DGrGLAttachment.cpp87 GrAttachment::UsageFlags::kStencilAttachment, in MakeStencil()
113 GrAttachment::UsageFlags::kColorAttachment, in MakeMSAA()
DGrGLRenderTarget.cpp101 GrAttachment::UsageFlags::kStencilAttachment, in MakeWrapped()
/third_party/skia/src/gpu/vk/
DGrVkImage.cpp26 UsageFlags::kStencilAttachment, in MakeStencil()
52 UsageFlags::kColorAttachment, in MakeMSAA()
70 UsageFlags usageFlags = UsageFlags::kTexture; in MakeTexture()
74 usageFlags |= UsageFlags::kColorAttachment; in MakeTexture()
94 GrAttachment::UsageFlags attachmentUsages, in make_views()
98 if (attachmentUsages & GrAttachment::UsageFlags::kStencilAttachment) { in make_views()
100 SkASSERT(attachmentUsages == GrAttachment::UsageFlags::kStencilAttachment); in make_views()
106 if (SkToBool(attachmentUsages & GrAttachment::UsageFlags::kStencilAttachment) || in make_views()
107 SkToBool(attachmentUsages & GrAttachment::UsageFlags::kColorAttachment)) { in make_views()
116 if (attachmentUsages & GrAttachment::UsageFlags::kTexture) { in make_views()
[all …]
DGrVkImage.h58 UsageFlags attachmentUsages,
215 UsageFlags attachmentUsages,
226 UsageFlags supportedUsages,
235 UsageFlags supportedUsages,
DGrVkTextureRenderTarget.cpp121 GrAttachment::UsageFlags textureUsageFlags = GrAttachment::UsageFlags::kTexture; in MakeWrappedTextureRenderTarget()
123 textureUsageFlags |= GrAttachment::UsageFlags::kColorAttachment; in MakeWrappedTextureRenderTarget()
DGrVkRenderTarget.cpp135 GrAttachment::UsageFlags::kColorAttachment, in MakeWrappedRenderTarget()
182 GrAttachment::UsageFlags::kColorAttachment, in MakeSecondaryCBRenderTarget()
DGrVkTexture.cpp107 GrAttachment::UsageFlags::kTexture, in MakeWrappedTexture()
DGrVkGpu.cpp1822 GrVkImage::UsageFlags::kColorAttachment, in setBackendSurfaceState()
/third_party/skia/src/gpu/mock/
DGrMockAttachment.h17 GrMockAttachment(GrMockGpu* gpu, SkISize dimensions, UsageFlags supportedUsages, int sampleCnt) in GrMockAttachment()
20 SkASSERT(supportedUsages == UsageFlags::kStencilAttachment); in GrMockAttachment()
DGrMockGpu.cpp217 new GrMockAttachment(this, dimensions, GrAttachment::UsageFlags::kStencilAttachment, in makeStencilAttachment()
/third_party/skia/src/gpu/dawn/
DGrDawnAttachment.cpp17 UsageFlags supportedUsages, in GrDawnAttachment()
45 new GrDawnAttachment(gpu, dimensions, UsageFlags::kStencilAttachment, sampleCnt, in MakeStencil()
DGrDawnAttachment.h34 UsageFlags supportedUsages,
/third_party/skia/src/gpu/d3d/
DGrD3DAttachment.cpp14 UsageFlags supportedUsages, in GrD3DAttachment()
62 UsageFlags::kStencilAttachment, in MakeStencil()
DGrD3DAttachment.h39 UsageFlags supportedUsages,