-
-
Save TSUMIKISEISAKU/89f94a2e965ac479cc5a9b0f69277451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <summary> | |
/// contain basic parameters of compute shader | |
/// </summary> | |
public class KernelParamsHandler | |
{ | |
// name of kernel | |
public string _name; | |
// index of kernel | |
public int _index; | |
// thread group size x | |
public int _x; | |
// thread group size y | |
public int _y; | |
// thread group size z | |
public int _z; | |
public KernelParamsHandler(ComputeShader computeShader, string kernelName, int threadSizeX, int threadSizeY, int threadSizeZ) | |
{ | |
_name = kernelName; | |
_index = computeShader.FindKernel(_name); | |
_x = threadSizeX; | |
_y = threadSizeY; | |
_z = threadSizeZ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment