Skip to content

Commit e1cfdfe

Browse files
committed
Edited obsolete code in CommandList example
1 parent 203337d commit e1cfdfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/rendering/shaders/attributes-and-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private Rendering.CommandList ConstantsCommandList()
244244
constants.Foo = new Vector4( 0.0f, 1.0f, 2.0f, 3.0f );
245245
constants.Bar = new Vector4( 4.0f, 5.0f, 6.0f, 7.0f );
246246

247-
commands.SetConstantBuffer( "Constants", constants );
247+
commands.Attributes.SetData( "Constants", constants );
248248

249249
return commands;
250250
}
@@ -300,7 +300,7 @@ private Rendering.CommandList ExampleCommandList()
300300

301301
// Sets attribute for anything after Rendering.Stage.AfterDepthPrepass
302302
// until end of frame for this view from the result of the compute operation
303-
commands.SetGlobal( "Result", ExampleRenderTarget );
303+
commands.Attributes.Set( "Result", ExampleRenderTarget );
304304

305305
return commands;
306306
}

0 commit comments

Comments
 (0)