343
edits
mNo edit summary |
mNo edit summary |
||
Line 79: | Line 79: | ||
A buffer represents a texture or, more generically, a region of GPU memory. It can have the following parameters: | A buffer represents a texture or, more generically, a region of GPU memory. It can have the following parameters: | ||
; | ; name | ||
: Passes will be able to address the buffer by this name. | : Passes will be able to address the buffer by this name. | ||
; | ; type | ||
: Any texture type allowed by OpenGL: 1d, 2d, 2d-array, 2d-multisample, 3d, rect or cubemap. | : Any texture type allowed by OpenGL: 1d, 2d, 2d-array, 2d-multisample, 3d, rect or cubemap. | ||
; | ; width | ||
: Texture width. It's possible to write 'screen' to use the physical viewport width. | : Texture width. It's possible to write 'screen' to use the physical viewport width. | ||
; | ; screen-width-scale | ||
: If 'screen' was used, this controls the width scaling factor. | : If 'screen' was used, this controls the width scaling factor. | ||
; | ; height | ||
: Texture height. It's possible to write 'screen' to use the physical viewport height. | : Texture height. It's possible to write 'screen' to use the physical viewport height. | ||
; | ; screen-height-scale | ||
: If 'screen' was used, this controls the height scaling factor. | : If 'screen' was used, this controls the height scaling factor. | ||
; | ; depth | ||
: Texture depth. | : Texture depth. | ||
; | ; internal-format, source-format and source-type | ||
: They specify the texture format. They correspond to the arguments ''internalformat'', ''format'' and ''type'' respectively of the OpenGL function ''glTexImage2D''. | : They specify the texture format. They correspond to the arguments ''internalformat'', ''format'' and ''type'' respectively of the OpenGL function ''glTexImage2D''. | ||
; | ; min-filter and mag-filter (Optional) | ||
: They change the minification and magnification filtering respectively. Possible values are: linear, linear-mipmap-linear, linear-mipmap-nearest, nearest, nearest-mipmap-linear and nearest-mipmap-nearest. The default value for both filters is linear. | : They change the minification and magnification filtering respectively. Possible values are: linear, linear-mipmap-linear, linear-mipmap-nearest, nearest, nearest-mipmap-linear and nearest-mipmap-nearest. The default value for both filters is linear. | ||
; | ; wrap-s, wrap-t and wrap-r (Optional) | ||
: They change the wrap mode for each coordinate. Possible values are: clamp, clamp-to-edge, clamp-to-border, repeat and mirror. The default value for every coordinate is clamp-to-border. | : They change the wrap mode for each coordinate. Possible values are: clamp, clamp-to-edge, clamp-to-border, repeat and mirror. The default value for every coordinate is clamp-to-border. | ||
edits