본문 바로가기
College Study/GLSL

[GLSL] Qualifier

by 2den 2022. 1. 5.
728x90

 


 

int newFunction(in vec4 aVec4,      // read-only
                out vec3 aVec3,     // write-only
                inout int aInt);    // read-write
 

The default is in. The inout qualifier is similar to a call by reference.

 

728x90

'College Study > GLSL' 카테고리의 다른 글

[GLSL] Circle  (0) 2022.01.06
[GLSL] Rectangle  (0) 2022.01.05
[GLSL] Atan  (0) 2022.01.05
[GLSL] Mix  (0) 2022.01.05
[GLSL] Color  (0) 2022.01.05

댓글