Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBufferD3D12.cpp112 size_t alignment = D3D12BufferSizeAlignment(GetUsage()); in Initialize()
132 resourceDescriptor.Flags = D3D12ResourceFlags(GetUsage() | wgpu::BufferUsage::CopyDst); in Initialize()
134 auto heapType = D3D12HeapType(GetUsage()); in Initialize()
314 return (GetUsage() & wgpu::BufferUsage::MapWrite) != 0; in IsCPUWritableAtCreation()
347 ASSERT((GetUsage() & wgpu::BufferUsage::MapWrite) != 0); in MapAtCreationImpl()
469 if (D3D12HeapType(GetUsage()) == D3D12_HEAP_TYPE_UPLOAD) { in ClearBuffer()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBindGroup.cpp104 DAWN_INVALID_IF(!(entry.buffer->GetUsage() & requiredUsage), in ValidateBufferBinding()
106 entry.buffer->GetUsage(), entry.buffer, requiredUsage); in ValidateBufferBinding()
146 !(texture->GetUsage() & wgpu::TextureUsage::TextureBinding), in ValidateTextureBinding()
148 texture->GetUsage(), texture); in ValidateTextureBinding()
168 !(texture->GetUsage() & wgpu::TextureUsage::StorageBinding), in ValidateTextureBinding()
170 texture->GetUsage(), texture); in ValidateTextureBinding()
DCommandValidation.cpp92 DAWN_INVALID_IF(!(buffer->GetUsage() & wgpu::BufferUsage::CopyDst), in ValidateWriteBuffer()
93 "%s usage (%s) does not include %s.", buffer, buffer->GetUsage(), in ValidateWriteBuffer()
443 DAWN_INVALID_IF(!(texture->GetUsage() & usage), "%s usage (%s) doesn't include %s.", in ValidateCanUseAs()
444 texture, texture->GetUsage(), usage); in ValidateCanUseAs()
460 DAWN_INVALID_IF(!(buffer->GetUsage() & usage), "%s usage (%s) doesn't include %s.", buffer, in ValidateCanUseAs()
461 buffer->GetUsage(), usage); in ValidateCanUseAs()
DExternalTexture.cpp34 (textureView->GetTexture()->GetUsage() & wgpu::TextureUsage::TextureBinding) == 0, in ValidateExternalTexturePlane()
36 textureView, textureView->GetTexture()->GetUsage(), wgpu::TextureUsage::TextureBinding); in ValidateExternalTexturePlane()
DSwapChain.cpp105 desc.usage = swapChain->GetUsage(); in GetSwapChainBaseTextureDescriptor()
331 ASSERT(IsSubset(mUsage, view->GetTexture()->GetUsage())); in APIGetCurrentTextureView()
369 wgpu::TextureUsage NewSwapChainBase::GetUsage() const { in GetUsage() function in dawn_native::NewSwapChainBase
DSwapChain.h128 wgpu::TextureUsage GetUsage() const;
DBuffer.h59 wgpu::BufferUsage GetUsage() const;
DTexture.h71 wgpu::TextureUsage GetUsage() const;
DQueue.cpp468 DAWN_INVALID_IF(!(destination->texture->GetUsage() & wgpu::TextureUsage::CopyDst), in ValidateWriteTexture()
469 "Usage (%s) of %s does not include %s.", destination->texture->GetUsage(), in ValidateWriteTexture()
/third_party/skia/src/sksl/
DSkSLAnalysis.h87 std::unique_ptr<ProgramUsage> GetUsage(const Program& program);
88 std::unique_ptr<ProgramUsage> GetUsage(const LoadedModule& module);
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBufferD3D12.cpp87 resourceDescriptor.Flags = D3D12ResourceFlags(GetUsage() | dawn::BufferUsageBit::CopyDst); in Buffer()
89 auto heapType = D3D12HeapType(GetUsage()); in Buffer()
208 return (GetUsage() & (dawn::BufferUsageBit::MapRead | dawn::BufferUsageBit::MapWrite)) != 0; in IsMapWritable()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DBufferMTL.mm64 if (GetUsage() & kMappableBufferUsages) {
79 if (GetUsage() &
89 if ((GetUsage() & wgpu::BufferUsage::Vertex) != 0) {
151 return GetUsage() & kMappableBufferUsages;
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/
DBufferMTL.mm24 if (GetUsage() & (dawn::BufferUsageBit::MapRead | dawn::BufferUsageBit::MapWrite)) {
52 return (GetUsage() & (dawn::BufferUsageBit::MapRead | dawn::BufferUsageBit::MapWrite)) != 0;
/third_party/skia/src/sksl/analysis/
DSkSLProgramUsage.cpp92 std::unique_ptr<ProgramUsage> Analysis::GetUsage(const Program& program) { in GetUsage() function in SkSL::Analysis
99 std::unique_ptr<ProgramUsage> Analysis::GetUsage(const LoadedModule& module) { in GetUsage() function in SkSL::Analysis
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DBufferVk.cpp145 if (GetUsage() & (wgpu::BufferUsage::Vertex | wgpu::BufferUsage::Index)) { in Initialize()
187 createInfo.usage = VulkanBufferUsage(GetUsage() | wgpu::BufferUsage::CopyDst); in Initialize()
202 if (GetUsage() & kMappableBufferUsages) { in Initialize()
DSwapChainVk.cpp376 VulkanImageUsage(GetUsage(), GetDevice()->GetValidInternalFormat(GetFormat())); in ChooseConfig()
382 config.wgpuUsage = GetUsage(); in ChooseConfig()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DBindGroup.cpp57 if (!(binding.buffer->GetUsage() & requiredUsage)) { in ValidateBufferBinding()
73 if (!(binding.textureView->GetTexture()->GetUsage() & requiredUsage)) { in ValidateTextureBinding()
DBuffer.h55 dawn::BufferUsageBit GetUsage() const;
DTexture.h57 dawn::TextureUsageBit GetUsage() const;
DCommandEncoder.cpp267 if (!(buffer->GetUsage() & usage)) { in ValidateCanUseAs()
276 if (!(texture->GetUsage() & usage)) { in ValidateCanUseAs()
528 if (usage & ~buffer->GetUsage()) { in ValidateUsages()
547 if (usage & ~texture->GetUsage()) { in ValidateUsages()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DBufferVk.cpp123 createInfo.usage = VulkanBufferUsage(GetUsage() | dawn::BufferUsageBit::CopyDst); in Buffer()
137 (GetUsage() & (dawn::BufferUsageBit::MapRead | dawn::BufferUsageBit::MapWrite)) != 0; in Buffer()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DExternalImageSiblingImpl11.cpp53 resource->GetUsage(&resourceUsage); in initialize()
/third_party/skia/src/sksl/ir/
DSkSLProgram.h94 fUsage = Analysis::GetUsage(*this); in Program()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DExternalImageSiblingImpl11.cpp46 resource->GetUsage(&resourceUsage); in initialize()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp105 (texture->GetUsage() & wgpu::TextureUsage::TextureBinding) != 0 && in RequiresCreatingNewTextureView()
543 if (!UsageNeedsTextureView(texture->GetUsage())) { in TextureView()

12