1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-07-07 05:21:47 +02:00
GiantsTools/Sdk/External/DirectXTK/Src/vbo.h

37 lines
972 B
C
Raw Permalink Normal View History

2021-01-24 00:40:09 +01:00
//--------------------------------------------------------------------------------------
// File: vbo.h
//
// The VBO file format was introduced in the Windows 8.0 ResourceLoading sample. It's
// a simple binary file containing a 16-bit index buffer and a fixed-format vertex buffer.
//
// The meshconvert sample tool for DirectXMesh can produce this file type
// http://go.microsoft.com/fwlink/?LinkID=324981
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=248929
// http://go.microsoft.com/fwlink/?LinkID=615561
//--------------------------------------------------------------------------------------
#pragma once
#include <cstdint>
namespace VBO
{
#pragma pack(push,1)
struct header_t
{
uint32_t numVertices;
uint32_t numIndices;
};
#pragma pack(pop)
} // namespace
static_assert(sizeof(VBO::header_t) == 8, "VBO header size mismatch");