หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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 |