code cleanup: compositor - define size for executePixel function output float array
This commit is contained in:
@@ -28,12 +28,12 @@ SetVectorOperation::SetVectorOperation() : NodeOperation()
|
||||
this->addOutputSocket(COM_DT_VECTOR);
|
||||
}
|
||||
|
||||
void SetVectorOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler)
|
||||
void SetVectorOperation::executePixel(float output[4], float x, float y, PixelSampler sampler)
|
||||
{
|
||||
outputValue[0] = this->m_x;
|
||||
outputValue[1] = this->m_y;
|
||||
outputValue[2] = this->m_z;
|
||||
outputValue[3] = this->m_w;
|
||||
output[0] = this->m_x;
|
||||
output[1] = this->m_y;
|
||||
output[2] = this->m_z;
|
||||
output[3] = this->m_w;
|
||||
}
|
||||
|
||||
void SetVectorOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
|
||||
Reference in New Issue
Block a user