IDMLObject::SetName method (directml.h)
Associates a name with the DirectML device object. This name is for use in debug diagnostics and tools. This method is thread-safe.
Syntax
HRESULT SetName(
PCWSTR name
);
Parameters
name
Type: PCWSTR
A NULL-terminated UNICODE string that contains the name to associate with the DirectML device object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directml.h |
Library | DirectML.lib |
DLL | DirectML.dll |