Home
last modified time | relevance | path

Searched refs:Aspect (Results 1 - 25 of 35) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DSubresourceStorageTests.cpp28 FakeStorage(Aspect aspects, in FakeStorage()
40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update()
54 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge()
65 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const { in Get()
69 size_t GetDataIndex(Aspect aspect, uint32_t layer, uint32_t level) const { in GetDataIndex()
82 Aspect mAspects;
141 for (Aspect aspect : IterateEnumMask(range.aspects)) { in CheckSameAs()
160 void CheckAspectCompressed(const SubresourceStorage<T>& s, Aspect aspect, bool expected) { in CheckAspectCompressed()
189 Aspect aspect, in CheckLayerCompressed()
220 SubresourceStorage<int> s(Aspect in TEST()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DSubresource.cpp22 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertSingleAspect()
23 Aspect aspectMask = ConvertAspect(format, aspect); in ConvertSingleAspect()
28 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertAspect()
29 Aspect aspectMask = SelectFormatAspects(format, aspect); in ConvertAspect()
30 ASSERT(aspectMask != Aspect::None); in ConvertAspect()
34 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertViewAspect()
36 if (format.aspects == Aspect::Color) { in ConvertViewAspect()
39 return Aspect::Plane0; in ConvertViewAspect()
41 return Aspect::Plane1; in ConvertViewAspect()
49 Aspect SelectFormatAspect
[all...]
H A DSubresource.h26 enum class Aspect : uint8_t { class
42 struct EnumBitmaskSize<Aspect> {
46 // Convert the TextureAspect to an Aspect mask for the format. ASSERTs if the aspect
49 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect);
51 // Convert the TextureAspect to an Aspect mask for the format. ASSERTs if the aspect
53 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect);
56 // Note that this can return Aspect::None if the Format doesn't have any of the
58 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect);
62 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect);
72 SubresourceRange(Aspect aspect
[all...]
H A DFormat.cpp88 return aspects == Aspect::Color; in IsColor()
92 return (aspects & Aspect::Depth) != 0; in HasDepth()
96 return (aspects & Aspect::Stencil) != 0; in HasStencil()
100 return (aspects & (Aspect::Depth | Aspect::Stencil)) != 0; in HasDepthOrStencil()
104 return (aspects & (Aspect::Plane0 | Aspect::Plane1)) != 0; in IsMultiPlanar()
111 const AspectInfo& Format::GetAspectInfo(Aspect aspect) const { in GetAspectInfo()
169 internalFormat.aspects = Aspect::Color; in BuildFormatTable()
207 internalFormat.aspects = Aspect in BuildFormatTable()
[all...]
H A DSubresourceStorage.h58 // - Aspect 0 is fully compressed.
59 // - Aspect 1 is partially compressed:
60 // - Aspect 1 layer 3 is decompressed.
61 // - Aspect 1 layer 0-2 and 4-42 are compressed.
114 SubresourceStorage(Aspect aspects,
121 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const;
172 Aspect GetAspectsForTesting() const;
175 bool IsAspectCompressedForTesting(Aspect aspect) const;
176 bool IsLayerCompressedForTesting(Aspect aspect, uint32_t layer) const;
188 SubresourceRange GetFullLayerRange(Aspect aspec
[all...]
H A DCommandValidation.cpp276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture()
357 ResultOrError<Aspect> SingleAspectUsedByImageCopyTexture(const ImageCopyTexture& view) { in SingleAspectUsedByImageCopyTexture()
367 Aspect single = format.aspects; in SingleAspectUsedByImageCopyTexture()
371 ASSERT(format.aspects & Aspect::Depth); in SingleAspectUsedByImageCopyTexture()
372 return Aspect::Depth; in SingleAspectUsedByImageCopyTexture()
374 ASSERT(format.aspects & Aspect::Stencil); in SingleAspectUsedByImageCopyTexture()
375 return Aspect::Stencil; in SingleAspectUsedByImageCopyTexture()
384 Aspect aspectUsed; in ValidateLinearToDepthStencilCopyRestrictions()
386 DAWN_INVALID_IF(aspectUsed == Aspect::Depth, "Cannot copy into the depth aspect of %s.", in ValidateLinearToDepthStencilCopyRestrictions()
H A DFormat.h45 enum class Aspect : uint8_t; class
93 Aspect aspects;
107 const AspectInfo& GetAspectInfo(Aspect aspect) const;
H A DTexture.h75 uint32_t GetSubresourceIndex(uint32_t mipLevel, uint32_t arraySlice, Aspect aspect) const;
131 Aspect GetAspects() const;
H A DCommandEncoder.cpp86 Aspect aspectUsed; in ValidateTextureDepthStencilToBufferCopyRestrictions()
88 if (aspectUsed == Aspect::Depth) { in ValidateTextureDepthStencilToBufferCopyRestrictions()
225 DAWN_INVALID_IF(!(attachment->GetAspects() & Aspect::Color) || in ValidateRenderPassColorAttachment()
285 attachment->GetAspects() == (Aspect::Depth | Aspect::Stencil) && in ValidateRenderPassDepthStencilAttachment()
457 Aspect aspects = depthStencilAttachment->view->GetAspects(); in IsReadOnlyDepthStencilAttachment()
458 DAWN_ASSERT(IsSubset(aspects, Aspect::Depth | Aspect::Stencil)); in IsReadOnlyDepthStencilAttachment()
460 if ((aspects & Aspect::Depth) && !depthStencilAttachment->depthReadOnly) { in IsReadOnlyDepthStencilAttachment()
463 if (aspects & Aspect in IsReadOnlyDepthStencilAttachment()
[all...]
H A DTexture.cpp307 (format->aspects & (Aspect::Depth | Aspect::Stencil)) != 0, in ValidateTextureDescriptor()
349 SelectFormatAspects(texture->GetFormat(), descriptor->aspect) == Aspect::None, in ValidateTextureViewDescriptor()
567 Aspect aspect) const { in GetSubresourceIndex()
575 for (Aspect aspect : IterateEnumMask(range.aspects)) { in IsSubresourceContentInitialized()
594 for (Aspect aspect : IterateEnumMask(range.aspects)) {
737 Aspect TextureViewBase::GetAspects() const { in GetAspects()
H A DCommandValidation.h54 ResultOrError<Aspect> SingleAspectUsedByImageCopyTexture(const ImageCopyTexture& view);
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DTextureGL.cpp227 if ((range.aspects & (Aspect::Depth | Aspect::Stencil)) != 0) { in ClearTexture()
230 if (range.aspects & Aspect::Depth) { in ClearTexture()
233 if (range.aspects & Aspect::Stencil) { in ClearTexture()
237 auto DoClear = [&](Aspect aspects) { in ClearTexture()
238 if (aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture()
240 } else if (aspects == Aspect::Depth) { in ClearTexture()
242 } else if (aspects == Aspect::Stencil) { in ClearTexture()
254 if (range.aspects == (Aspect in ClearTexture()
[all...]
H A DCommandBufferGL.cpp311 Aspect aspect = view->GetAspects(); in ApplyBindGroup()
314 case Aspect::None: in ApplyBindGroup()
315 case Aspect::Color: in ApplyBindGroup()
316 case Aspect::CombinedDepthStencil: in ApplyBindGroup()
317 case Aspect::Plane0: in ApplyBindGroup()
318 case Aspect::Plane1: in ApplyBindGroup()
320 case Aspect::Depth: in ApplyBindGroup()
324 case Aspect::Stencil: in ApplyBindGroup()
491 if (src.aspect & Aspect::Color) { in CopyTextureToTextureWithBlit()
494 if (src.aspect & Aspect in CopyTextureToTextureWithBlit()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp381 LegalizerInfo::getAspectAction(const InstrAspect &Aspect) const { in getAspectAction()
385 if (Aspect.Type.isScalar() || Aspect.Type.isPointer()) in getAspectAction()
386 return findScalarLegalAction(Aspect); in getAspectAction()
387 assert(Aspect.Type.isVector()); in getAspectAction()
388 return findVectorLegalAction(Aspect); in getAspectAction()
621 LegalizerInfo::findScalarLegalAction(const InstrAspect &Aspect) const { in findScalarLegalAction()
622 assert(Aspect.Type.isScalar() || Aspect.Type.isPointer()); in findScalarLegalAction()
623 if (Aspect in findScalarLegalAction()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DUtilsD3D12.h34 Aspect aspect);
42 Aspect aspect);
55 Aspect aspect);
65 Aspect aspect);
75 Aspect aspect);
H A DUtilsD3D12.cpp74 Aspect aspect) { in ComputeTextureCopyLocationForTexture()
89 Aspect aspect) { in ComputeBufferLocationForCopyTextureRegion()
155 Aspect aspect) { in RecordCopyBufferToTextureFromTextureCopySplit()
186 Aspect aspect) { in CopyBufferTo2DTextureWithCopySplit()
231 Aspect aspect) { in CopyBufferTo3DTexture()
251 Aspect aspect) { in RecordCopyBufferToTexture()
274 Aspect aspect) { in RecordCopyTextureToBufferFromTextureCopySplit()
H A DTextureD3D12.cpp698 DXGI_FORMAT Texture::GetD3D12CopyableSubresourceFormat(Aspect aspect) const { in GetD3D12CopyableSubresourceFormat()
704 case Aspect::Depth: in GetD3D12CopyableSubresourceFormat()
706 case Aspect::Stencil: in GetD3D12CopyableSubresourceFormat()
747 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TrackUsageAndTransitionNow()
836 for (Aspect aspect : IterateEnumMask(range.aspects)) { in TransitionSubresourceRange()
961 Aspect aspects, in GetDSVDescriptor()
967 if (depthReadOnly && aspects & Aspect::Depth) { in GetDSVDescriptor()
970 if (stencilReadOnly && aspects & Aspect::Stencil) { in GetDSVDescriptor()
1009 for (Aspect aspect : IterateEnumMask(range.aspects)) { in ClearTexture()
1018 case Aspect in ClearTexture()
[all...]
H A DRenderPassBuilderD3D12.cpp66 switch (resolveDestination->GetFormat().GetAspectInfo(Aspect::Color).baseType) { in D3D12EndingAccessResolveParameters()
88 ASSERT(resolveDestinationTexture->GetFormat().aspects == Aspect::Color); in D3D12EndingAccessResolveSubresourceParameters()
95 Aspect::Color); in D3D12EndingAccessResolveSubresourceParameters()
H A DTextureD3D12.h58 DXGI_FORMAT GetD3D12CopyableSubresourceFormat(Aspect aspect) const;
66 Aspect aspects,
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DUtilsVulkan.cpp55 VkImageAspectFlags VulkanAspectMask(const Aspect& aspects) { in VulkanAspectMask()
57 for (Aspect aspect : IterateEnumMask(aspects)) { in VulkanAspectMask()
59 case Aspect::Color: in VulkanAspectMask()
62 case Aspect::Depth: in VulkanAspectMask()
65 case Aspect::Stencil: in VulkanAspectMask()
69 case Aspect::CombinedDepthStencil: in VulkanAspectMask()
73 case Aspect::Plane0: in VulkanAspectMask()
74 case Aspect::Plane1: in VulkanAspectMask()
75 case Aspect::None: in VulkanAspectMask()
H A DTextureVk.cpp772 wgpu::TextureUsage usage = mSubresourceLastUsages.Get(Aspect::Color, 0, 0); in ExportExternalTexture()
876 ASSERT(GetFormat().aspects & Aspect::Depth); in GetVkAspectMask()
877 return VulkanAspectMask(Aspect::Depth); in GetVkAspectMask()
879 ASSERT(GetFormat().aspects & Aspect::Stencil); in GetVkAspectMask()
880 return VulkanAspectMask(Aspect::Stencil); in GetVkAspectMask()
976 return GetFormat().aspects == (Aspect::Depth | Aspect::Stencil); in ShouldCombineDepthStencilBarriers()
979 Aspect Texture::ComputeAspectsForSubresourceStorage() const { in ComputeAspectsForSubresourceStorage()
981 return Aspect::CombinedDepthStencil; in ComputeAspectsForSubresourceStorage()
994 // for DEPTH | STENCIL since the SubresourceRange uses Aspect in TransitionUsageForPass()
[all...]
H A DUtilsVulkan.h98 VkImageAspectFlags VulkanAspectMask(const Aspect& aspects);
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
H A DUtilsMetal.h66 Aspect aspect);
73 MTLBlitOption ComputeMTLBlitOption(const Format& format, Aspect aspect);
H A DCommandBufferMTL.h42 Aspect aspect,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h969 void setAction(const InstrAspect &Aspect, LegalizeAction Action) {
972 const unsigned OpcodeIdx = Aspect.Opcode - FirstOp;
973 if (SpecifiedActions[OpcodeIdx].size() <= Aspect.Idx)
974 SpecifiedActions[OpcodeIdx].resize(Aspect.Idx + 1);
975 SpecifiedActions[OpcodeIdx][Aspect.Idx][Aspect.Type] = Action;
1175 getAspectAction(const InstrAspect &Aspect) const;
1326 findScalarLegalAction(const InstrAspect &Aspect) const;
1330 findVectorLegalAction(const InstrAspect &Aspect) const;

Completed in 19 milliseconds

12