cesium-native  0.41.0
BufferView.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Library.h"
6 #include "CesiumGltf/NamedObject.h"
7 
8 #include <cstdint>
9 #include <optional>
10 
11 namespace CesiumGltf {
15 struct CESIUMGLTF_API BufferView final : public CesiumGltf::NamedObject {
16  static inline constexpr const char* TypeName = "BufferView";
17 
22  struct Target {
23  static constexpr int32_t ARRAY_BUFFER = 34962;
24 
25  static constexpr int32_t ELEMENT_ARRAY_BUFFER = 34963;
26  };
27 
31  int32_t buffer = -1;
32 
36  int64_t byteOffset = 0;
37 
41  int64_t byteLength = int64_t();
42 
50  std::optional<int64_t> byteStride;
51 
59  std::optional<int32_t> target;
60 };
61 } // namespace CesiumGltf
Classes for working with glTF models.
Known values for The hint representing the intended GPU buffer type to use with this buffer view.
Definition: BufferView.h:22
A view into a buffer generally representing a subset of the buffer.
Definition: BufferView.h:15
std::optional< int64_t > byteStride
The stride, in bytes.
Definition: BufferView.h:50
std::optional< int32_t > target
The hint representing the intended GPU buffer type to use with this buffer view.
Definition: BufferView.h:59
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15