Graph Maker
WMG_Compute_Shader Class Reference

Class used to represent a texture that is procedurally generated using a Compute Shader. More...

Inheritance diagram for WMG_Compute_Shader:

Public Member Functions

void Init (int textureResolution)
 Initializes by creating a render texture with the specified resolution. More...
 
void dispatchAndUpdateImage ()
 Runs the compute shader and updates the texture. More...
 

Public Attributes

ComputeShader computeShader
 

Detailed Description

Class used to represent a texture that is procedurally generated using a Compute Shader.

Member Function Documentation

◆ dispatchAndUpdateImage()

void WMG_Compute_Shader.dispatchAndUpdateImage ( )

Runs the compute shader and updates the texture.

◆ Init()

void WMG_Compute_Shader.Init ( int  textureResolution)

Initializes by creating a render texture with the specified resolution.

Parameters
textureResolutionTexture resolution.

Member Data Documentation

◆ computeShader

ComputeShader WMG_Compute_Shader.computeShader

The documentation for this class was generated from the following file: