diff options
Diffstat (limited to 'examples/triangle')
| -rw-r--r-- | examples/triangle/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/triangle/main.cpp b/examples/triangle/main.cpp index 0f6c31809..f182e0a0a 100644 --- a/examples/triangle/main.cpp +++ b/examples/triangle/main.cpp @@ -224,8 +224,8 @@ Slang::Result initialize() // First, we create an input layout: // InputElementDesc inputElements[] = { - { "POSITION", 0, Format::RGB_Float32, offsetof(Vertex, position) }, - { "COLOR", 0, Format::RGB_Float32, offsetof(Vertex, color) }, + { "POSITION", 0, Format::R32G32B32_FLOAT, offsetof(Vertex, position) }, + { "COLOR", 0, Format::R32G32B32_FLOAT, offsetof(Vertex, color) }, }; auto inputLayout = gDevice->createInputLayout( &inputElements[0], |
