7 default:
throw new InvalidOperationException(
"Unsupported IndexFormat.");
28 default:
throw new InvalidOperationException(
"Unrecognized vertex semantic.");
33 return format
switch {
41 _ =>
throw new InvalidOperationException(
"Unsupported ColorFormat.")
50 default:
throw new InvalidOperationException(
"Unsupported DepthFormat.");
55 switch (primitiveType) {
60 default:
throw new InvalidOperationException(
"Unsupported PrimitiveType.");
71 default:
throw new InvalidOperationException(
"Unsupported ShaderParameterType.");
87 default:
throw new InvalidOperationException(
"Unsupported VertexElementFormat.");
103 default:
throw new InvalidOperationException(
"Unsupported VertexElementFormat.");
static int GetSize(this VertexElementFormat format)
static int GetSize(this ShaderParameterType type)
static int GetElementsCount(this VertexElementFormat format)
static int GetElementSize(this VertexElementFormat format)
static int GetSize(this ColorFormat format)
static int GetSize(this IndexFormat format)
static string GetSemanticString(this VertexElementSemantic semantic)
static int GetPrimitivesCount(this PrimitiveType primitiveType, int indicesCount)
static int GetSize(this DepthFormat format)
static int Max(int x1, int x2)