DML_BINDING_DESC structure (directml.h)
Contains the description of a binding so that you can add it to the binding table via a call to one of the IDMLBindingTable methods.
A binding can refer to an input or an output tensor resource, or to a persistent or a temporary resource, and there are methods on IDMLBindingTable to bind each kind. The type of the structure pointed to by Desc depends on the value of Type.
Syntax
struct DML_BINDING_DESC {
DML_BINDING_TYPE Type;
const void *Desc;
};
Members
Type
Type: DML_BINDING_TYPE
A DML_BINDING_TYPE specifying the type of the binding; whether it refers to a single buffer, or to an array of buffers.
Desc
Type: const void*
A pointer to a constant structure whose type depends on the value Type. If Type is DML_BINDING_TYPE_BUFFER, then Desc should point to a DML_BUFFER_BINDING. If Type is DML_BINDING_TYPE_BUFFER_ARRAY, then Desc should point to a DML_BUFFER_ARRAY_BINDING.
Requirements
Requirement | Value |
---|---|
Header | directml.h |