push_constants method

push_constants

Push the constant to the pipeline

def push_constants(self, stage, data):
    ...
ParameterTypeDescription
stageShaderStageWhich shader stage will consume the constant data
databytesThe data that will be sent to the shader

push_constants

Push the constant to the pipeline

def push_constants(self, stage, data, size):
    ...
ParameterTypeDescription
stageShaderStageWhich shader stage will consume the constant data
databytesThe data that will be sent to the shader
sizeintBytes to write to the pipeline

See Also