Advertisement
Guest User

Controller.cs

a guest
Mar 10th, 2017
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Controller : MonoBehaviour {
  5.  
  6.     public ComputeShader shader;
  7.     // Use this for initialization
  8.     void Start () {
  9.  
  10.         int idx = shader.FindKernel("CSMain");
  11.         Debug.LogWarning("kernel index: " + idx);
  12.     }
  13.    
  14.     // Update is called once per frame
  15.     void Update () {
  16.    
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement