![]() ![]() These variables are given values by the previous stage (possibly via interpolation of values output from multiple shader executions). These variables are not constant (in the sense of const), but they cannot be changed by user code. Global variables declared with the out qualifier are shader stage output variables. The output variables which are not written are not read by the next shader stage or pipeline process.The shader is a Fragment Shader which executes the discard statement.The shader must set all output variables at some point in its execution there are only two exceptions to this: These values are passed to the next stage of the pipeline (possibly via interpolation of values output from multiple shader executions). This includes writes to fragment shader outputs which are masked off. These qualifiers can not be used on local variables. And on Function Parameters, they take on an entirely different meaning. Variables qualified with these can be of any non- opaque basic type (though some stages have more restrictive limitations on types. They cannot be of struct types, but they can be arrays. Input/output variables can be aggregated into interface blocks. ![]() There are usually very strict limits on the number of user-defined input and output values available to each shader stage. The input and output-qualified variables define an interface between this shader and the previous/next part of the pipeline. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |