-
Notifications
You must be signed in to change notification settings - Fork 10
Add a builder interface for barriers. #79
Copy link
Copy link
Closed
Labels
DX12 ❎The issue involves the DX12 backend.The issue involves the DX12 backend.FeatureNew feature or request.New feature or request.Priority: LowA low priority issue.A low priority issue.Vulkan 🌋The issue involves the Vulkan backend.The issue involves the Vulkan backend.
Milestone
Description
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);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DX12 ❎The issue involves the DX12 backend.The issue involves the DX12 backend.FeatureNew feature or request.New feature or request.Priority: LowA low priority issue.A low priority issue.Vulkan 🌋The issue involves the Vulkan backend.The issue involves the Vulkan backend.
Projects
Status
v0.4.1