Statement Blocks

A statement block contains one or more statements; each statement is made up of expressions and operators.



{
   statement 1;
   statement 2;
   ...
   statement n;
}


A statement block also indicates subscope. Variables declared within a statement block are only recognized within the block.

Related topics

Statements (DirectX HLSL)

 

 

Show: