Interface: what a function reads and writes beyond its bound slots
Each stage interface, and a pipeline's together, states whether its function may read or write a resource through anything but its bound slots: a pointer or texture it loads from memory or makes from an integer (an argument buffer's resources, an address stored in a buffer, a resource ID), an indirect command buffer, ray tracing, or a call it cannot see into. Decided from the specialized entry's memory plan: an access whose pointer or texture handle may have a dynamic or call root. With each slot's access, these are the two static facts the new runtime's compute encoder needs to place a barrier only on a hazard. SEMANTICS_VERSION 2144 (interface facts), ARTIFACT_FORMAT_VERSION 526 (two fields in StageInterface and PipelineInterface).
This commit is contained in:
1 parent
a933b864a4
commit
ec40b7de6d
11 files changed
+271
-10
No files matched your search
@@ -1622,6 +1622,13 @@ for dependency in &pipeline.dependencies {
|
||||
records they reach: the indirect-command operations they may call, and the primitive types
|
||||
their draws may pass (a draw's constant type, or all five where it is not a constant). A clear
|
||||
bit is proven.
|
||||
- `interface.reads_unbound_resources` and `interface.writes_unbound_resources` say, provably,
|
||||
whether a pipeline's functions may read or write a resource through anything but their bound
|
||||
slots: through a pointer or texture they load from memory or make from an integer (an argument
|
||||
buffer's resources, an address stored in a buffer, a resource ID), an indirect command buffer,
|
||||
ray tracing, or a call the function cannot see into. Metal requires such resources to be
|
||||
declared with `useResource` or `useHeap`. With each slot's `access`, they are what a compute
|
||||
encoder needs to place a barrier only on a hazard.
|
||||
|
||||
### Plans
|
||||
|
||||
|
||||
Reference in new issue
Block a user