Lines Matching refs:compute_pipeline
365 const ComputePipelineInfo& compute_pipeline, in MapDeviceBufferToHostBuffer() argument
367 for (uint32_t i = 0; i < compute_pipeline.pipeline->GetBuffers().size(); in MapDeviceBufferToHostBuffer()
369 auto& device_buffer = compute_pipeline.buffers[i]; in MapDeviceBufferToHostBuffer()
370 auto& host_buffer = compute_pipeline.pipeline->GetBuffers()[i]; in MapDeviceBufferToHostBuffer()
825 pipeline_map_[pipeline].compute_pipeline.reset( in CreatePipeline()
828 AttachBuffers(pipeline_map_[pipeline].compute_pipeline.get()); in CreatePipeline()
1415 ComputePipelineInfo* compute_pipeline = GetComputePipeline(command); in DoCompute() local
1416 if (!compute_pipeline) in DoCompute()
1421 device_->Get(), compute_pipeline->bind_group_layouts); in DoCompute()
1424 pipelineStageDescriptor.module = compute_pipeline->compute_shader; in DoCompute()
1432 for (uint32_t i = 0; i < compute_pipeline->bind_groups.size(); i++) { in DoCompute()
1433 if (compute_pipeline->bind_groups[i]) { in DoCompute()
1434 pass.SetBindGroup(i, compute_pipeline->bind_groups[i], 0, nullptr); in DoCompute()
1445 result = MapDeviceBufferToHostBuffer(*compute_pipeline, *device_); in DoCompute()
1476 ComputePipelineInfo* compute_pipeline = GetComputePipeline(command); in DoBuffer() local
1477 if (compute_pipeline) { in DoBuffer()
1478 auto where = compute_pipeline->buffer_map.find({descriptor_set, binding}); in DoBuffer()
1479 if (where != compute_pipeline->buffer_map.end()) { in DoBuffer()
1481 dawn_buffer = &compute_pipeline->buffers[dawn_buffer_index]; in DoBuffer()
1485 if (!render_pipeline && !compute_pipeline) in DoBuffer()
1691 Result EngineDawn::AttachBuffers(ComputePipelineInfo* compute_pipeline) { in AttachBuffers() argument
1695 if (compute_pipeline->pipeline->GetPushConstantBuffer().buffer != nullptr) { in AttachBuffers()
1708 if (!compute_pipeline->pipeline->GetBuffers().empty()) { in AttachBuffers()
1710 for (auto& buf_info : compute_pipeline->pipeline->GetBuffers()) { in AttachBuffers()
1716 for (const auto& buf_info : compute_pipeline->pipeline->GetBuffers()) { in AttachBuffers()
1743 compute_pipeline->buffers.emplace_back( in AttachBuffers()
1749 compute_pipeline->buffer_map[{buf_info.descriptor_set, buf_info.binding}] = in AttachBuffers()
1750 compute_pipeline->buffers.size() - 1; in AttachBuffers()
1752 compute_pipeline->used_descriptor_set.insert(buf_info.descriptor_set); in AttachBuffers()
1762 buf_info.binding, compute_pipeline->buffers.back(), 0, in AttachBuffers()
1771 compute_pipeline->bind_group_layouts.push_back(bindGroupLayout); in AttachBuffers()
1774 MakeBindGroup(*device_, compute_pipeline->bind_group_layouts[i], in AttachBuffers()
1776 compute_pipeline->bind_groups.push_back(bindGroup); in AttachBuffers()
1780 compute_pipeline->bind_group_layouts.push_back(bindGroupLayout); in AttachBuffers()
1783 MakeBindGroup(*device_, compute_pipeline->bind_group_layouts[i], in AttachBuffers()
1785 compute_pipeline->bind_groups.push_back(bindGroup); in AttachBuffers()