- DXContextCreate
- DXContextSetSize
- DXContextGetSize
- DXContextClearColors
- DXContextClearDepth
- DXContextGetColors
- DXContextGetDepth
- DXBufferCreate
- DXTextureCreate
- DXInputCreate
- DXInputSet
- DXShaderCreate
- DXShaderSetLayout
- DXShaderInputsSet
- DXShaderTexturesSet
- DXDraw
- DXDrawIndexed
- DXPrimiveTopologySet
- DXBufferSet
- DXShaderSet
- DXHandleType
- DXRelease
DXShaderSet
Sets a shader for rendering.
bool DXShaderSet(
|
Parameters
context
[in] Handle for a graphic context created in DXContextCreate().
shader
[in] Handle of a shader created in DXShaderCreate().
Return Value
In case of successful execution, returns true, otherwise - false. To receive an error code, the GetLastError() function should be called.
Note
Several types of shaders can simultaneously be used for rendering (vertex, geometry and pixel ones).