Skip to content

Add a builder interface for barriers. #79

@crud89

Description

@crud89

Describe your problem

Barriers would be well-suited to get a builder interface. Currently they are a quite clunky to initialize:

auto barrier = m_device->makeBarrier();
barrier->transition(*texture, ResourceState::ReadWrite);
barrier->waitFor(*buffer);

A builder could provide a better interface here:

auto barrier = m_device->makeBarrier()
    .transition(*texture, ResourceState::ReadWrite)
    .waitFor(*buffer);

Metadata

Metadata

Assignees

Labels

DX12 ❎The issue involves the DX12 backend.FeatureNew feature or request.Priority: LowA low priority issue.Vulkan 🌋The issue involves the Vulkan backend.

Projects

Status

v0.4.1

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions