Pass:getWidth

Edit

Returns the width of the textures of the Pass's canvas, in pixels.

width = Pass:getWidth()

Arguments

None

Returns

NameTypeDescription
widthnumber The texture width.

Notes

If the pass doesn't have a canvas, this function returns zero.

See also