Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DBindGroup.cpp38 const BindingInfo& bindingInfo) { in ValidateBufferBinding() argument
48 ASSERT(bindingInfo.bindingType == BindingInfoType::Buffer); in ValidateBufferBinding()
53 switch (bindingInfo.buffer.type) { in ValidateBufferBinding()
102 entry.offset, bindingInfo.buffer.type, requiredBindingAlignment); in ValidateBufferBinding()
108 DAWN_INVALID_IF(bindingSize < bindingInfo.buffer.minBindingSize, in ValidateBufferBinding()
110 bindingSize, bindingInfo.buffer.minBindingSize); in ValidateBufferBinding()
121 const BindingInfo& bindingInfo) { in ValidateTextureBinding() argument
138 switch (bindingInfo.bindingType) { in ValidateTextureBinding()
143 SampleTypeToSampleTypeBit(bindingInfo.texture.sampleType); in ValidateTextureBinding()
151 texture->IsMultisampledTexture() != bindingInfo.texture.multisampled, in ValidateTextureBinding()
[all …]
DBindGroupLayout.cpp224 BindingInfo bindingInfo; in CreateBindGroupLayoutInfo() local
225 bindingInfo.binding = BindingNumber(binding.binding); in CreateBindGroupLayoutInfo()
226 bindingInfo.visibility = binding.visibility; in CreateBindGroupLayoutInfo()
229 bindingInfo.bindingType = BindingInfoType::Buffer; in CreateBindGroupLayoutInfo()
230 bindingInfo.buffer = binding.buffer; in CreateBindGroupLayoutInfo()
232 bindingInfo.bindingType = BindingInfoType::Sampler; in CreateBindGroupLayoutInfo()
233 bindingInfo.sampler = binding.sampler; in CreateBindGroupLayoutInfo()
235 bindingInfo.bindingType = BindingInfoType::Texture; in CreateBindGroupLayoutInfo()
236 bindingInfo.texture = binding.texture; in CreateBindGroupLayoutInfo()
239 bindingInfo.texture.viewDimension = wgpu::TextureViewDimension::e2D; in CreateBindGroupLayoutInfo()
[all …]
DPassResourceUsageTracker.cpp85 const BindingInfo& bindingInfo = group->GetLayout()->GetBindingInfo(bindingIndex); in AddBindGroup() local
87 switch (bindingInfo.bindingType) { in AddBindGroup()
90 switch (bindingInfo.buffer.type) { in AddBindGroup()
117 switch (bindingInfo.storageTexture.access) { in AddBindGroup()
188 const BindingInfo& bindingInfo = group->GetLayout()->GetBindingInfo(index); in AddResourcesReferencedByBindGroup() local
190 switch (bindingInfo.bindingType) { in AddResourcesReferencedByBindGroup()
DProgrammableEncoder.cpp134 const BindingInfo& bindingInfo = layout->GetBindingInfo(i); in ValidateSetBindGroup() local
138 ASSERT(bindingInfo.bindingType == BindingInfoType::Buffer); in ValidateSetBindGroup()
139 ASSERT(bindingInfo.buffer.hasDynamicOffset); in ValidateSetBindGroup()
142 switch (bindingInfo.buffer.type) { in ValidateSetBindGroup()
DShaderModule.cpp452 const BindingInfo& bindingInfo = layout->GetBindingInfo(bindingIndex); in GetBindGroupMinBufferSizes() local
453 if (bindingInfo.buffer.minBindingSize != 0) { in GetBindGroupMinBufferSizes()
459 const auto& shaderInfo = shaderBindings.find(bindingInfo.binding); in GetBindGroupMinBufferSizes()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBindGroupLayoutD3D12.cpp26 const BindingInfo& bindingInfo) { in WGPUBindingInfoToDescriptorRangeType() argument
27 switch (bindingInfo.bindingType) { in WGPUBindingInfoToDescriptorRangeType()
29 switch (bindingInfo.buffer.type) { in WGPUBindingInfoToDescriptorRangeType()
49 switch (bindingInfo.storageTexture.access) { in WGPUBindingInfoToDescriptorRangeType()
77 const BindingInfo& bindingInfo = GetBindingInfo(bindingIndex); in BindGroupLayout() local
80 WGPUBindingInfoToDescriptorRangeType(bindingInfo); in BindGroupLayout()
84 mShaderRegisters[bindingIndex] = uint32_t(bindingInfo.binding); in BindGroupLayout()
92 ASSERT(!bindingInfo.buffer.hasDynamicOffset); in BindGroupLayout()
DBindGroupD3D12.cpp53 const BindingInfo& bindingInfo = bgl->GetBindingInfo(bindingIndex); in BindGroup() local
57 switch (bindingInfo.bindingType) { in BindGroup()
69 switch (bindingInfo.buffer.type) { in BindGroup()
162 switch (bindingInfo.storageTexture.access) { in BindGroup()
DPipelineLayoutD3D12.cpp140 const BindingInfo& bindingInfo = in Initialize() local
143 if (bindingInfo.visibility == wgpu::ShaderStage::None) { in Initialize()
162 rootParameter.ParameterType = RootParameterType(bindingInfo.buffer.type); in Initialize()
165 rootParameter.ShaderVisibility = ShaderVisibilityType(bindingInfo.visibility); in Initialize()
DSamplerHeapCacheD3D12.cpp105 const BindingInfo& bindingInfo = bgl->GetBindingInfo(bindingIndex); in GetOrCreate() local
106 if (bindingInfo.bindingType == BindingInfoType::Sampler) { in GetOrCreate()
DCommandBufferD3D12.cpp426 const BindingInfo& bindingInfo = in ApplyBindGroup() local
428 if (bindingInfo.visibility == wgpu::ShaderStage::None) { in ApplyBindGroup()
445 ASSERT(bindingInfo.bindingType == BindingInfoType::Buffer); in ApplyBindGroup()
446 switch (bindingInfo.buffer.type) { in ApplyBindGroup()
DShaderModuleD3D12.cpp251 auto const& bindingInfo = it.second; in Create() local
266 (bindingInfo.buffer.type == wgpu::BufferBindingType::ReadOnlyStorage && in Create()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DBindGroupLayoutVk.cpp50 VkDescriptorType VulkanDescriptorType(const BindingInfo& bindingInfo) { in VulkanDescriptorType() argument
51 switch (bindingInfo.bindingType) { in VulkanDescriptorType()
53 switch (bindingInfo.buffer.type) { in VulkanDescriptorType()
55 if (bindingInfo.buffer.hasDynamicOffset) { in VulkanDescriptorType()
62 if (bindingInfo.buffer.hasDynamicOffset) { in VulkanDescriptorType()
100 const BindingInfo& bindingInfo = GetBindingInfo(bindingIndex); in Initialize() local
106 vkBinding.descriptorType = VulkanDescriptorType(bindingInfo); in Initialize()
108 vkBinding.stageFlags = VulkanShaderStageFlags(bindingInfo.visibility); in Initialize()
DBindGroupVk.cpp55 const BindingInfo& bindingInfo = GetLayout()->GetBindingInfo(bindingIndex); in BindGroup() local
64 write.descriptorType = VulkanDescriptorType(bindingInfo); in BindGroup()
66 switch (bindingInfo.bindingType) { in BindGroup()
DBindGroupLayoutVk.h32 VkDescriptorType VulkanDescriptorType(const BindingInfo& bindingInfo);
DRenderPipelineVk.cpp567 const VertexBufferInfo& bindingInfo = GetVertexBuffer(slot); in ComputeVertexInputDesc() local
571 bindingDesc->stride = bindingInfo.arrayStride; in ComputeVertexInputDesc()
572 bindingDesc->inputRate = VulkanInputRate(bindingInfo.stepMode); in ComputeVertexInputDesc()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DPipelineLayoutGL.cpp37 const BindingInfo& bindingInfo = bgl->GetBindingInfo(bindingIndex); in PipelineLayout() local
38 switch (bindingInfo.bindingType) { in PipelineLayout()
40 switch (bindingInfo.buffer.type) { in PipelineLayout()
DBindGroupGL.cpp32 const BindingInfo& bindingInfo = descriptor->layout->GetBindingInfo(bindingIndex); in ValidateGLBindGroupDescriptor() local
33 if (bindingInfo.bindingType == BindingInfoType::StorageTexture) { in ValidateGLBindGroupDescriptor()
DShaderModuleGL.cpp345 const BindingInfoArray& bindingInfo = *(mGLBindings.at(entryPointName)); in TranslateToGLSL() local
363 for (const auto& it : bindingInfo[group]) { in TranslateToGLSL()
DCommandBufferGL.cpp249 const BindingInfo& bindingInfo = in ApplyBindGroup() local
252 switch (bindingInfo.bindingType) { in ApplyBindGroup()
259 if (bindingInfo.buffer.hasDynamicOffset) { in ApplyBindGroup()
265 switch (bindingInfo.buffer.type) { in ApplyBindGroup()
342 switch (bindingInfo.storageTexture.access) { in ApplyBindGroup()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DPipelineLayoutMTL.mm42 const BindingInfo& bindingInfo =
44 if (!(bindingInfo.visibility & StageBit(stage))) {
48 switch (bindingInfo.bindingType) {
DShaderModuleMTL.mm75 const BindingInfo& bindingInfo =
78 if (!(bindingInfo.visibility & StageBit(stage))) {
DCommandBufferMTL.mm389 const BindingInfo& bindingInfo =
393 bindingInfo.visibility & wgpu::ShaderStage::Vertex && render != nullptr;
395 bindingInfo.visibility & wgpu::ShaderStage::Fragment && render != nullptr;
397 bindingInfo.visibility & wgpu::ShaderStage::Compute && compute != nullptr;
416 switch (bindingInfo.bindingType) {
425 if (bindingInfo.buffer.hasDynamicOffset) {
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DTranslatorMetalDirect.h72 void addUniformBufferBinding(const std::string &name, UBOBindingInfo bindingInfo) in addUniformBufferBinding() argument
74 uniformBufferBindings.insert({name, bindingInfo}); in addUniformBufferBinding()