Home
last modified time | relevance | path

Searched refs:aspect (Results 1 - 25 of 202) sorted by relevance

123456789

/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DSubresource.cpp22 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertSingleAspect() argument
23 Aspect aspectMask = ConvertAspect(format, aspect); in ConvertSingleAspect()
28 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertAspect() argument
29 Aspect aspectMask = SelectFormatAspects(format, aspect); in ConvertAspect()
34 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertViewAspect() argument
35 // Color view |format| must be treated as the same plane |aspect|. in ConvertViewAspect()
37 switch (aspect) { in ConvertViewAspect()
46 return ConvertAspect(format, aspect); in ConvertViewAspect()
49 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect) { in SelectFormatAspects() argument
50 switch (aspect) { in SelectFormatAspects()
65 GetAspectIndex(Aspect aspect) GetAspectIndex() argument
118 MakeSingle(Aspect aspect, uint32_t baseArrayLayer, uint32_t baseMipLevel) MakeSingle() argument
[all...]
H A DSubresourceStorage.h30 // SubresourceStorage<T> acts like a simple map from subresource (aspect, layer, level) to a
55 // SubresourceStorage internally tracks compression state per aspect and then per layer of each
56 // aspect. This means that a 2-aspect texture can have the following compression state:
66 // |-> Nodes 1 deep represent each aspect. If an aspect is compressed, its node doesn't have
86 // SubresourceStorage contains an inline array that contains the per-aspect compressed data
87 // and only allocates a per-subresource on aspect decompression.
121 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const;
175 bool IsAspectCompressedForTesting(Aspect aspect) cons
387 Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const Get() argument
[all...]
H A DSubresource.h36 // An aspect for that represents the combination of both the depth and stencil aspects. It
46 // Convert the TextureAspect to an Aspect mask for the format. ASSERTs if the aspect
48 // Also ASSERTs if "All" is selected and results in more than one 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);
58 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect);
60 // Convert TextureAspect to the aspect which corresponds to the view format. This
62 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect);
86 static SubresourceRange MakeSingle(Aspect aspect,
[all...]
H A DCommandValidation.cpp274 DAWN_TRY(ValidateTextureAspect(textureCopy.aspect)); in ValidateImageCopyTexture()
276 SelectFormatAspects(texture->GetFormat(), textureCopy.aspect) == Aspect::None, in ValidateImageCopyTexture()
277 "%s format (%s) does not have the selected aspect (%s).", texture, in ValidateImageCopyTexture()
278 texture->GetFormat().format, textureCopy.aspect); in ValidateImageCopyTexture()
329 const TexelBlockInfo& blockInfo = format.GetAspectInfo(textureCopy.aspect).block; in ValidateTextureCopyRange()
355 // Always returns a single aspect (color, stencil, depth, or ith plane for multi-planar
359 switch (view.aspect) { in SingleAspectUsedByImageCopyTexture()
363 "More than a single aspect (%s) is selected for multi-planar format (%s) in " in SingleAspectUsedByImageCopyTexture()
365 view.aspect, format.format, view.texture); in SingleAspectUsedByImageCopyTexture()
386 DAWN_INVALID_IF(aspectUsed == Aspect::Depth, "Cannot copy into the depth aspect o in ValidateLinearToDepthStencilCopyRestrictions()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawImageObjectUtil.cpp173 vk::VkImageAspectFlagBits aspect, in readSurface()
179 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readSurface()
181 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, in readSurface()
184 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) in readSurface()
186 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readSurface()
197 vk::VkImageAspectFlagBits aspect, in readDepth()
201 DE_ASSERT(aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT); in readDepth()
206 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readDepth()
217 vk::VkImageAspectFlagBits aspect, in readVolume()
167 readSurface(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface() argument
191 readDepth(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readDepth() argument
210 readVolume(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readVolume() argument
235 readSurface1D(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface1D() argument
259 read(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, void * data) read() argument
280 readUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readUsingBuffer() argument
414 readSurfaceLinear(vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurfaceLinear() argument
427 readLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readLinear() argument
526 uploadVolume(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadVolume() argument
548 uploadSurface(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface() argument
570 uploadSurface1D(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface1D() argument
592 uploadSurfaceLinear(const tcu::ConstPixelBufferAccess& access, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurfaceLinear() argument
604 upload(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, const void * data) upload() argument
682 uploadUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadUsingBuffer() argument
776 uploadLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadLinear() argument
[all...]
H A DvktDrawImageObjectUtil.hpp80 vk::VkImageAspectFlagBits aspect,
90 vk::VkImageAspectFlagBits aspect,
99 vk::VkImageAspectFlagBits aspect,
110 vk::VkImageAspectFlagBits aspect,
118 vk::VkImageAspectFlagBits aspect,
131 vk::VkImageAspectFlagBits aspect,
144 vk::VkImageAspectFlagBits aspect,
153 vk::VkImageAspectFlagBits aspect,
161 vk::VkImageAspectFlagBits aspect,
170 vk::VkImageAspectFlagBits aspect,
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawImageObjectUtil.cpp173 vk::VkImageAspectFlagBits aspect, in readSurface()
179 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readSurface()
181 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, in readSurface()
184 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) in readSurface()
186 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readSurface()
197 vk::VkImageAspectFlagBits aspect, in readDepth()
201 DE_ASSERT(aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT); in readDepth()
206 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); in readDepth()
217 vk::VkImageAspectFlagBits aspect, in readVolume()
167 readSurface(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface() argument
191 readDepth(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readDepth() argument
210 readVolume(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readVolume() argument
235 readSurface1D(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurface1D() argument
259 read(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, void * data) read() argument
280 readUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readUsingBuffer() argument
414 readSurfaceLinear(vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) readSurfaceLinear() argument
427 readLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, void * data) readLinear() argument
526 uploadVolume(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadVolume() argument
548 uploadSurface(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface() argument
570 uploadSurface1D(const tcu::ConstPixelBufferAccess& access, vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurface1D() argument
592 uploadSurfaceLinear(const tcu::ConstPixelBufferAccess& access, vk::VkOffset3D offset, int width, int height, int depth, vk::VkImageAspectFlagBits aspect, unsigned int mipLevel, unsigned int arrayElement) uploadSurfaceLinear() argument
604 upload(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, vk::VkImageType type, const void * data) upload() argument
682 uploadUsingBuffer(vk::VkQueue queue, vk::Allocator& allocator, vk::VkImageLayout layout, vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadUsingBuffer() argument
776 uploadLinear(vk::VkOffset3D offset, int width, int height, int depth, unsigned int mipLevel, unsigned int arrayElement, vk::VkImageAspectFlagBits aspect, const void * data) uploadLinear() argument
[all...]
H A DvktDrawImageObjectUtil.hpp80 vk::VkImageAspectFlagBits aspect,
90 vk::VkImageAspectFlagBits aspect,
99 vk::VkImageAspectFlagBits aspect,
110 vk::VkImageAspectFlagBits aspect,
118 vk::VkImageAspectFlagBits aspect,
131 vk::VkImageAspectFlagBits aspect,
144 vk::VkImageAspectFlagBits aspect,
153 vk::VkImageAspectFlagBits aspect,
161 vk::VkImageAspectFlagBits aspect,
170 vk::VkImageAspectFlagBits aspect,
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkImage.cpp237 auto aspect = static_cast<VkImageAspectFlagBits>(subresourceRange.aspectMask); in getSizeInBytes() local
243 size = (layerCount - 1) * getLayerSize(aspect); in getSizeInBytes()
246 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
251 size = layerCount * getLayerSize(aspect); in getSizeInBytes()
258 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
350 auto aspect = static_cast<VkImageAspectFlagBits>(pSubresource->aspectMask); in getSubresourceLayout() local
351 pLayout->offset = getMemoryOffset(aspect, pSubresource->mipLevel, pSubresource->arrayLayer); in getSubresourceLayout()
352 pLayout->size = getMultiSampledLevelSize(aspect, pSubresource->mipLevel); in getSubresourceLayout()
353 pLayout->rowPitch = rowPitchBytes(aspect, pSubresource->mipLevel); in getSubresourceLayout()
354 pLayout->depthPitch = slicePitchBytes(aspect, pSubresourc in getSubresourceLayout()
564 auto aspect = static_cast<VkImageAspectFlagBits>(region.imageSubresource.aspectMask); copy() local
690 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(subresource.aspectMask); getTexelPointer() local
733 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(region.imageSubresource.aspectMask); bufferExtentInBlocks() local
771 VkImageAspectFlagBits aspect = static_cast<VkImageAspectFlagBits>(subresource.aspectMask); texelOffsetBytesInStorage() local
779 getMipLevelExtent(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMipLevelExtent() argument
820 rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const rowPitchBytes() argument
842 slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const slicePitchBytes() argument
923 getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMemoryOffset() argument
933 getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer) const getMemoryOffset() argument
938 getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMipLevelSize() argument
943 getMultiSampledLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getMultiSampledLevelSize() argument
953 getLayerOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const getLayerOffset() argument
[all...]
H A DVkImage.hpp82 Format getFormat(VkImageAspectFlagBits aspect) const;
89 VkExtent3D getMipLevelExtent(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
90 size_t rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
91 size_t slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
96 VkDeviceSize getLayerSize(VkImageAspectFlagBits aspect) const;
97 VkDeviceSize getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
125 VkDeviceSize getMultiSampledLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
126 VkDeviceSize getLayerOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
127 VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
128 VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_
[all...]
H A DVkImageView.hpp105 Format getFormat(VkImageAspectFlagBits aspect) const { return image->getFormat(aspect); } in getFormat()
106 int rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
107 int slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
108 int getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
109 int layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage = RAW) const;
111 VkExtent2D getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const;
126 void *getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer, Usage usage = RAW) const;
H A DVkImageView.cpp324 int ImageView::rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in rowPitchBytes() argument
326 return getImage(usage)->rowPitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in rowPitchBytes()
329 int ImageView::slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in slicePitchBytes() argument
331 return getImage(usage)->slicePitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in slicePitchBytes()
334 int ImageView::getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in getMipLevelSize() argument
336 return getImage(usage)->getMipLevelSize(aspect, subresourceRange.baseMipLevel + mipLevel); in getMipLevelSize()
339 int ImageView::layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage) const in layerPitchBytes() argument
341 return static_cast<int>(getImage(usage)->getLayerSize(aspect)); in layerPitchBytes()
350 VkExtent2D ImageView::getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const in getMipLevelExtent()
352 return Extent2D(image->getMipLevelExtent(aspect, subresourceRang in getMipLevelExtent()
372 getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer, Usage usage) const getOffsetPointer() argument
[all...]
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_image.c224 /** Expands the given aspect mask relative to the image
298 const VkImageAspectFlags aspect = region->imageSubresource.aspectMask; in vk_image_buffer_copy_layout() local
299 VkFormat format = vk_format_get_aspect_format(image->format, aspect); in vk_image_buffer_copy_layout()
423 * stencil-only format if only one aspect is chosen and the full in vk_image_view_init()
542 VkImageAspectFlagBits aspect) in vk_image_layout_is_read_only()
544 assert(util_bitcount(aspect) == 1); in vk_image_layout_is_read_only()
582 return aspect == VK_IMAGE_ASPECT_DEPTH_BIT; in vk_image_layout_is_read_only()
585 return aspect == VK_IMAGE_ASPECT_STENCIL_BIT; in vk_image_layout_is_read_only()
617 * "If layout only specifies the layout of the depth aspect of the
618 * attachment, the layout of the stencil aspect i
541 vk_image_layout_is_read_only(VkImageLayout layout, VkImageAspectFlagBits aspect) vk_image_layout_is_read_only() argument
704 vk_image_layout_to_usage_flags(VkImageLayout layout, VkImageAspectFlagBits aspect) vk_image_layout_to_usage_flags() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DUtilsD3D12.cpp74 Aspect aspect) { in ComputeTextureCopyLocationForTexture()
78 copyLocation.SubresourceIndex = texture->GetSubresourceIndex(level, layer, aspect); in ComputeTextureCopyLocationForTexture()
89 Aspect aspect) { in ComputeBufferLocationForCopyTextureRegion()
95 texture->GetD3D12CopyableSubresourceFormat(aspect); in ComputeBufferLocationForCopyTextureRegion()
155 Aspect aspect) { in RecordCopyBufferToTextureFromTextureCopySplit()
156 ASSERT(HasOneBit(aspect)); in RecordCopyBufferToTextureFromTextureCopySplit()
158 ComputeTextureCopyLocationForTexture(texture, textureMiplevel, textureLayer, aspect); in RecordCopyBufferToTextureFromTextureCopySplit()
168 offsetBytes, bufferBytesPerRow, aspect); in RecordCopyBufferToTextureFromTextureCopySplit()
186 Aspect aspect) { in CopyBufferTo2DTextureWithCopySplit()
187 ASSERT(HasOneBit(aspect)); in CopyBufferTo2DTextureWithCopySplit()
71 ComputeTextureCopyLocationForTexture(const Texture* texture, uint32_t level, uint32_t layer, Aspect aspect) ComputeTextureCopyLocationForTexture() argument
83 ComputeBufferLocationForCopyTextureRegion( const Texture* texture, ID3D12Resource* bufferResource, const Extent3D& bufferSize, const uint64_t offset, const uint32_t rowPitch, Aspect aspect) ComputeBufferLocationForCopyTextureRegion() argument
147 RecordCopyBufferToTextureFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, ID3D12Resource* bufferResource, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyBufferToTextureFromTextureCopySplit() argument
178 CopyBufferTo2DTextureWithCopySplit(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo2DTextureWithCopySplit() argument
223 CopyBufferTo3DTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) CopyBufferTo3DTexture() argument
243 RecordCopyBufferToTexture(CommandRecordingContext* commandContext, const TextureCopy& textureCopy, ID3D12Resource* bufferResource, const uint64_t offset, const uint32_t bytesPerRow, const uint32_t rowsPerImage, const Extent3D& copySize, Texture* texture, Aspect aspect) RecordCopyBufferToTexture() argument
266 RecordCopyTextureToBufferFromTextureCopySplit(ID3D12GraphicsCommandList* commandList, const TextureCopySubresource& baseCopySplit, Buffer* buffer, uint64_t baseOffset, uint64_t bufferBytesPerRow, Texture* texture, uint32_t textureMiplevel, uint32_t textureLayer, Aspect aspect) RecordCopyTextureToBufferFromTextureCopySplit() argument
[all...]
H A DUtilsD3D12.h34 Aspect aspect);
42 Aspect aspect);
55 Aspect aspect);
65 Aspect aspect);
75 Aspect aspect);
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DEnumMaskIteratorTests.cpp48 for (TestAspect aspect : IterateEnumMask(static_cast<TestAspect>(0))) { in TEST()
50 DAWN_UNUSED(aspect); in TEST()
58 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST()
59 EXPECT_EQ(aspect, expected[i++]); in TEST()
67 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST()
68 EXPECT_EQ(aspect, expected[i++]); in TEST()
H A DSubresourceStorageTests.cpp40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update()
45 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Update()
46 updateFunc(range, &mData[GetDataIndex(aspect, layer, level)]); in Update()
54 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge()
57 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Merge()
58 mergeFunc(range, &mData[GetDataIndex(aspect, layer, level)], in Merge()
59 other.Get(aspect, layer, level)); in Merge()
65 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const { in Get()
66 return mData[GetDataIndex(aspect, arrayLayer, mipLevel)]; in Get()
69 size_t GetDataIndex(Aspect aspect, uint32_
160 CheckAspectCompressed(const SubresourceStorage<T>& s, Aspect aspect, bool expected) CheckAspectCompressed() argument
188 CheckLayerCompressed(const SubresourceStorage<T>& s, Aspect aspect, uint32_t layer, bool expected) CheckLayerCompressed() argument
[all...]
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
H A Dtransfer_image.cc71 VkImageAspectFlags aspect, in TransferImage()
90 aspect_(aspect), in TransferImage()
145 // Combined depth/stencil image used as a descriptor. Only one aspect can be in Initialize()
195 Result TransferImage::CreateVkImageView(VkImageAspectFlags aspect) { in CreateVkImageView() argument
208 aspect, /* aspectMask */ in CreateVkImageView()
225 VkImageAspectFlags aspect, in CreateBufferImageCopy()
228 if (aspect == VK_IMAGE_ASPECT_STENCIL_BIT) { in CreateBufferImageCopy()
240 aspect, /* aspectMask */ in CreateBufferImageCopy()
265 for (auto aspect : aspects) { in CopyToHost()
266 if (aspect_ & aspect) { in CopyToHost()
69 TransferImage(Device* device, const Format& format, VkImageAspectFlags aspect, VkImageType image_type, VkImageUsageFlags image_usage_flags, uint32_t x, uint32_t y, uint32_t z, uint32_t mip_levels, uint32_t base_mip_level, uint32_t used_mip_levels, uint32_t samples) TransferImage() argument
224 CreateBufferImageCopy( VkImageAspectFlags aspect, uint32_t mip_level) CreateBufferImageCopy() argument
[all...]
H A Dimage_descriptor.cc69 VkImageAspectFlags aspect = 0; in CreateResourceIfNeeded() local
71 aspect = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; in CreateResourceIfNeeded()
73 aspect = VK_IMAGE_ASPECT_DEPTH_BIT; in CreateResourceIfNeeded()
75 aspect = VK_IMAGE_ASPECT_DEPTH_BIT; in CreateResourceIfNeeded()
77 aspect = VK_IMAGE_ASPECT_COLOR_BIT; in CreateResourceIfNeeded()
91 device_, *fmt, aspect, image_type, usage, amber_buffer->GetWidth(), in CreateResourceIfNeeded()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DReadOnlyDepthStencilAttachmentTests.cpp63 wgpu::RenderPipeline CreateRenderPipeline(wgpu::TextureAspect aspect, in CreateRenderPipeline() argument
86 if (aspect == wgpu::TextureAspect::DepthOnly) { in CreateRenderPipeline()
100 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in CreateRenderPipeline()
126 void DoTest(wgpu::TextureAspect aspect, in DoTest() argument
138 if (aspect == wgpu::TextureAspect::DepthOnly) { in DoTest()
141 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in DoTest()
147 // Note that we can only select one single aspect for texture view used in bind group. in DoTest()
149 viewDesc.aspect = aspect; in DoTest()
156 // it doesn't impact anything if the format has only one aspect in DoTest()
[all...]
H A DDepthStencilSamplingTests.cpp82 for (TestAspect aspect : aspects) { in GenerateSamplingShader()
83 switch (aspect) { in GenerateSamplingShader()
273 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument
281 switch (aspect) { in DoSamplingTestImpl()
283 inputViewDesc.aspect = wgpu::TextureAspect::DepthOnly; in DoSamplingTestImpl()
286 inputViewDesc.aspect = wgpu::TextureAspect::StencilOnly; in DoSamplingTestImpl()
299 switch (aspect) { in DoSamplingTestImpl()
328 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument
336 switch (aspect) { in DoSamplingTestImpl()
338 inputViewDesc.aspect in DoSamplingTestImpl()
380 DoSamplingTest(TestAspect aspect, wgpu::RenderPipeline pipeline, wgpu::TextureFormat format, std::vector<T> textureValues, T tolerance = {}) DoSamplingTest() argument
393 DoSamplingTest(TestAspect aspect, wgpu::ComputePipeline pipeline, wgpu::TextureFormat format, std::vector<T> textureValues, T tolerance = {}) DoSamplingTest() argument
438 DoSamplingExtraStencilComponentsRenderTest(TestAspect aspect, wgpu::TextureFormat format, std::vector<uint8_t> textureValues) DoSamplingExtraStencilComponentsRenderTest() argument
449 DoSamplingExtraStencilComponentsComputeTest(TestAspect aspect, wgpu::TextureFormat format, std::vector<uint8_t> textureValues) DoSamplingExtraStencilComponentsComputeTest() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DVideoViewsValidationTests.cpp50 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
55 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
58 // Compatible view format but wrong aspect. in TEST_F()
60 viewDesc.aspect = wgpu::TextureAspect::All; in TEST_F()
72 // Plane aspect specified with non-planar texture. in TEST_F()
73 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
76 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
80 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
84 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
96 planeViewDesc.aspect in TEST_F()
[all...]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
H A Dmatrix_transform.hpp226 /// @param aspect Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
234 T aspect,
241 /// @param aspect Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
249 T aspect,
256 /// @param aspect Specifies the aspect rati
[all...]
/third_party/mesa3d/src/intel/vulkan/
H A Danv_blorp.c204 VkImageAspectFlags aspect, in get_blorp_surf_for_anv_image()
210 const uint32_t plane = anv_image_aspect_to_plane(image, aspect); in get_blorp_surf_for_anv_image()
215 aspect, usage, layout); in get_blorp_surf_for_anv_image()
257 if (aspect & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV) { in get_blorp_surf_for_anv_image()
259 anv_image_get_clear_color_addr(device, image, aspect); in get_blorp_surf_for_anv_image()
261 } else if (aspect & VK_IMAGE_ASPECT_DEPTH_BIT) { in get_blorp_surf_for_anv_image()
263 anv_image_get_clear_color_addr(device, image, aspect); in get_blorp_surf_for_anv_image()
275 VkImageAspectFlags aspect, in get_blorp_surf_for_anv_shadow_image()
279 const uint32_t plane = anv_image_aspect_to_plane(image, aspect); in get_blorp_surf_for_anv_shadow_image()
484 const VkImageAspectFlags aspect in copy_buffer_to_image() local
202 get_blorp_surf_for_anv_image(const struct anv_device *device, const struct anv_image *image, VkImageAspectFlags aspect, VkImageUsageFlags usage, VkImageLayout layout, enum isl_aux_usage aux_usage, struct blorp_surf *blorp_surf) get_blorp_surf_for_anv_image() argument
273 get_blorp_surf_for_anv_shadow_image(const struct anv_device *device, const struct anv_image *image, VkImageAspectFlags aspect, struct blorp_surf *blorp_surf) get_blorp_surf_for_anv_shadow_image() argument
1363 anv_image_msaa_resolve(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *src_image, enum isl_aux_usage src_aux_usage, uint32_t src_level, uint32_t src_base_layer, const struct anv_image *dst_image, enum isl_aux_usage dst_aux_usage, uint32_t dst_level, uint32_t dst_base_layer, VkImageAspectFlagBits aspect, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, uint32_t width, uint32_t height, uint32_t layer_count, enum blorp_filter filter) anv_image_msaa_resolve() argument
1494 anv_image_copy_to_shadow(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *image, VkImageAspectFlagBits aspect, uint32_t base_level, uint32_t level_count, uint32_t base_layer, uint32_t layer_count) anv_image_copy_to_shadow() argument
1551 anv_image_clear_color(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *image, VkImageAspectFlagBits aspect, enum isl_aux_usage aux_usage, enum isl_format format, struct isl_swizzle swizzle, uint32_t level, uint32_t base_layer, uint32_t layer_count, VkRect2D area, union isl_color_value clear_color) anv_image_clear_color() argument
1669 anv_image_hiz_op(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *image, VkImageAspectFlagBits aspect, uint32_t level, uint32_t base_layer, uint32_t layer_count, enum isl_aux_op hiz_op) anv_image_hiz_op() argument
1806 anv_image_mcs_op(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *image, enum isl_format format, struct isl_swizzle swizzle, VkImageAspectFlagBits aspect, uint32_t base_layer, uint32_t layer_count, enum isl_aux_op mcs_op, union isl_color_value *clear_value, bool predicate) anv_image_mcs_op() argument
1896 anv_image_ccs_op(struct anv_cmd_buffer *cmd_buffer, const struct anv_image *image, enum isl_format format, struct isl_swizzle swizzle, VkImageAspectFlagBits aspect, uint32_t level, uint32_t base_layer, uint32_t layer_count, enum isl_aux_op ccs_op, union isl_color_value *clear_value, bool predicate) anv_image_ccs_op() argument
[all...]
H A Danv_image.c60 image_aspect_to_binding(struct anv_image *image, VkImageAspectFlags aspect) in image_aspect_to_binding() argument
68 assert(aspect >= VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT && in image_aspect_to_binding()
69 aspect <= VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT); in image_aspect_to_binding()
76 plane = aspect - VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT; in image_aspect_to_binding()
78 plane = anv_image_aspect_to_plane(image, aspect); in image_aspect_to_binding()
206 VkImageAspectFlagBits aspect) in choose_isl_surf_usage()
229 switch (aspect) { in choose_isl_surf_usage()
251 aspect == VK_IMAGE_ASPECT_COLOR_BIT) { in choose_isl_surf_usage()
362 plane_format.aspect == VK_IMAGE_ASPECT_STENCIL_BIT && in anv_image_plane_needs_shadow_surface()
710 VkImageAspectFlags aspect in add_aux_surface_if_supported() local
203 choose_isl_surf_usage(VkImageCreateFlags vk_create_flags, VkImageUsageFlags vk_usage, isl_surf_usage_flags_t isl_extra_usage, VkImageAspectFlagBits aspect) choose_isl_surf_usage() argument
1212 VkImageAspectFlagBits aspect = 1 << b; add_all_surfaces_implicit_layout() local
1330 const VkImageAspectFlagBits aspect = 1 << b; add_all_surfaces_explicit_layout() local
2095 anv_layout_to_aux_state(const struct intel_device_info * const devinfo, const struct anv_image * const image, const VkImageAspectFlagBits aspect, const VkImageLayout layout) anv_layout_to_aux_state() argument
2299 anv_layout_to_aux_usage(const struct intel_device_info * const devinfo, const struct anv_image * const image, const VkImageAspectFlagBits aspect, const VkImageUsageFlagBits usage, const VkImageLayout layout) anv_layout_to_aux_usage() argument
2366 anv_layout_to_fast_clear_type(const struct intel_device_info * const devinfo, const struct anv_image * const image, const VkImageAspectFlagBits aspect, const VkImageLayout layout) anv_layout_to_fast_clear_type() argument
2465 anv_image_fill_surface_state(struct anv_device *device, const struct anv_image *image, VkImageAspectFlagBits aspect, const struct isl_view *view_in, isl_surf_usage_flags_t view_usage, enum isl_aux_usage aux_usage, const union isl_color_value *clear_color, enum anv_image_view_state_flags flags, struct anv_surface_state *state_inout, struct brw_image_param *image_param_out) anv_image_fill_surface_state() argument
[all...]

Completed in 18 milliseconds

123456789