ShaderWithFormat Format Property Delta Engine Documentation

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

public VertexFormat Format { get; }

Property Value

Type: VertexFormat
Remarks

Tests: DeltaEngine.Graphics.Tests.ShaderWithFormatTests
Examples

1 unit tests call DeltaEngine.Graphics.ShaderWithFormat.Format
[Test, CloseAfterFirstFrame]
public void InvalidVertexFormat()
{
    var invalidData = new ShaderWithFormatCreationData(ShaderFlags.None, "", "", "", "", null);
    Assert.Throws<ShaderWithFormat.InvalidVertexFormat>(
        () => ContentLoader.Create<Shader>(invalidData));
    var emptyFormat = new ShaderWithFormatCreationData(ShaderFlags.None, "", "", "", "",
        new VertexFormat(new VertexElement[0]));
    Assert.Throws<ShaderWithFormat.InvalidVertexFormat>(
        () => ContentLoader.Create<Shader>(emptyFormat));
}
See Also