![]() Opaque types that are arrayed can use array-index and structure field selection (for. Non-array opaque types can only be passed to a function that takes this type as a parameter they cannot be used as any other part of an expression. This allows you to pass opaque types to user-defined functions. Opaque type variables can also be declared as in-qualified function parameters. They cannot be part of a buffer-backed interface block or an input/output variable, either directly or indirectly. They can be declared as members of a struct, but if so, then the struct can only be used to declare a uniform variable (or to declare a member of a struct/array that itself a uniform variable). Such variables can be arrays of the opaque type. They can be declared at global scope, as a uniform variables. Variables of opaque types can only be declared in one of two ways. These functions return/modify the actual referenced data. As such, they can only be used as parameters to functions. Opaque variables do not have "values" in the same way as regular types they are markers that reference the real data. Opaque types represent some external object which the shader references in some fashion.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |