void Set( StringToken token, float f )
void Set( StringToken token, Vector2 vector2 )
void Set( StringToken token, Vector3 vector3 )
void Set( StringToken token, Vector4 vector4 )
void Set( StringToken token, int i )
void Set( StringToken token, Matrix matrix )
void Set( StringToken token, GpuBuffer buffer )
void Set( StringToken token, Texture texture )

book_4_sparkGenerated
code_blocksInput

Description

The Set method in the CommandList class is used to set a floating-point value associated with a specific StringToken. This method is part of the rendering command list, which is used to manage and execute rendering commands in a structured manner.

Usage

To use the Set method, you need to have an instance of CommandList. You can then call the method with the appropriate parameters:

  • token: A StringToken that identifies the parameter you want to set.
  • f: A float value that you want to associate with the specified token.

Example

// Example of using the Set method
CommandList commandList = new CommandList();
StringToken myToken = new StringToken("MyParameter");
float myValue = 1.0f;

// Set the float value for the specified token
commandList.Set(myToken, myValue);