
## PushConstant class

A utility to provide data to shader through push constant.



The PushConstant type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [`__init__(self)`](/3d/python-net/aspose.threed.render/pushconstant/__init__/#) | Constructor of the [`PushConstant`](/3d/python-net/aspose.threed.render/pushconstant) |


### Methods
| Method | Description |
| :- | :- |
| [`write(self, mat)`](/3d/python-net/aspose.threed.render/pushconstant/write/#aspose.threed.utilities.fmatrix4) | Write the matrix to the constant |
| [`write(self, n)`](/3d/python-net/aspose.threed.render/pushconstant/write/#int) | Write a int value to the constant |
| [`write(self, f)`](/3d/python-net/aspose.threed.render/pushconstant/write/#float) | Write a float value to the constant |
| [`write(self, vec)`](/3d/python-net/aspose.threed.render/pushconstant/write/#aspose.threed.utilities.fvector4) | Write a 4-component vector to the constant |
| [`write(self, vec)`](/3d/python-net/aspose.threed.render/pushconstant/write/#aspose.threed.utilities.fvector3) | Write a 3-component vector to the constant |
| [`write(self, x, y, z, w)`](/3d/python-net/aspose.threed.render/pushconstant/write/#float-float-float-float) | Write a 4-component vector to the constant |
| [`commit(self, stage, command_list)`](/3d/python-net/aspose.threed.render/pushconstant/commit/#aspose.threed.render.shaderstage-aspose.threed.render.icommandlist) | Commit prepared data to graphics pipeline. |



### See Also
* module [`aspose.threed.render`](..)
* class [`PushConstant`](/3d/python-net/aspose.threed.render/pushconstant)
