UnityEngine.ComputeShader.SetInt C# (CSharp) Method

SetInt() private method

private SetInt ( int nameID, int val ) : void
nameID int
val int
return void
        public extern void SetInt(int nameID, int val);
        /// <summary>

Same methods

ComputeShader::SetInt ( string name, int val ) : void

Usage Example

コード例 #1
0
    //
    // GPU STUFF
    //

    private static void SetShaderVars(UnityEngine.ComputeShader shader, UnityEngine.Vector2 noiseOffset, bool normalize, float noiseScale)
    {
        shader.SetInt("octaves", octaves);
        shader.SetFloat("falloff", falloff);

        shader.SetInt("normalize", System.Convert.ToInt32(normalize));
        shader.SetFloat("noiseScale", noiseScale);
        shader.SetVector("offset", noiseOffset);
    }
All Usage Examples Of UnityEngine.ComputeShader::SetInt