Files
mql5-skills/skills/mql5/references/docs/31-directx/1076-directx-dxinputcreate.md
T
2026-06-23 21:47:51 +08:00

28 lines
771 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DXInputCreate
Creates shader inputs.
```
int  DXInputCreate(
   int   context,        // graphic context handle
   uint  input_size      // size of inputs in bytes 
   );
```
Parameters
context
[in]  Handle for a graphic context created in [DXContextCreate()](/en/docs/directx/dxcontextcreate).
input_size
[in]  Size of the parameter structure in bytes.
Return Value
The handle for shader inputs or INVALID_HANDLE in case of an error. To receive an [error](/en/docs/constants/errorswarnings/errorcodes) code, the [GetLastError()](/en/docs/check/getlasterror) function should be called.
A created handle that is no longer in use should be explicitly released by the [DXRelease()](/en/docs/directx/dxrelease) function.