ShaderWithFormatTests AllowDynamicCreationViaCreationData Method Delta Engine Documentation

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AllowDynamicCreationViaCreationData()
Examples

[Test, CloseAfterFirstFrame]
public void AllowDynamicCreationViaCreationData()
{
    var data = new ShaderWithFormatCreationData(ShaderFlags.None, "AnyData", "AnyData",
        "AnyData", "AnyData", VertexFormat.Position2DColor);
    var shader = ContentLoader.Create<NoDataShaderWithFormat>(data);
    Assert.DoesNotThrow(() => shader.ReloadCreationData(data));
}
See Also