ShaderSource() 공개 메소드

public ShaderSource ( int shader, int count, String textLines, int lengths ) : void
shader int
count int
textLines String
lengths int
리턴 void
예제 #1
0
        public GLSLShader(GraphicsInterface gi, string shaderSourceCode, ShaderType sType)
        {
            fShaderID = -1;
            fGI = gi;

            if (shaderSourceCode.Length > 0)
            {
                fShaderID = gi.CreateShader(sType);

                String[] shaderSourceStringArray = new String[1];
                shaderSourceStringArray[0] = shaderSourceCode;

                gi.ShaderSource(fShaderID, 1, shaderSourceStringArray, null);
            }
        }