Slide 14
Slide 14 text
// 頂点データレイアウト指定
ShaderWarmupSetup setup = new ShaderWarmupSetup();
setup.vdecl = new VertexAttributeDescriptor[]
{
new VertexAttributeDescriptor(VertexAttribute.Position, VertexAttributeFormat.Float32, 3),
new VertexAttributeDescriptor(VertexAttribute.Normal, VertexAttributeFormat.Float32, 3),
new VertexAttributeDescriptor(VertexAttribute.Color, VertexAttributeFormat.UNorm8, 4),
new VertexAttributeDescriptor(VertexAttribute.TexCoord0, VertexAttributeFormat.Float32, 2),
};
// Warmup実行
ShaderWarmup.WarmupShader(shader, setup);
コード