cesium-native 0.43.0
Loading...
Searching...
No Matches
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
11namespace CesiumGltf {
15struct CESIUMGLTF_API BufferView final : public CesiumGltf::NamedObject {
19 static constexpr const char* TypeName = "BufferView";
20
25 struct Target {
27 static constexpr int32_t ARRAY_BUFFER = 34962;
28
30 static constexpr int32_t ELEMENT_ARRAY_BUFFER = 34963;
31 };
32
36 int32_t buffer = -1;
37
41 int64_t byteOffset = 0;
42
46 int64_t byteLength = int64_t();
47
55 std::optional<int64_t> byteStride;
56
64 std::optional<int32_t> target;
65
72 int64_t getSizeBytes() const {
73 int64_t accum = 0;
74 accum += int64_t(sizeof(BufferView));
76 int64_t(sizeof(CesiumGltf::NamedObject));
77
78 return accum;
79 }
80};
81} // 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:25
A view into a buffer generally representing a subset of the buffer.
Definition BufferView.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition BufferView.h:72
std::optional< int64_t > byteStride
The stride, in bytes.
Definition BufferView.h:55
std::optional< int32_t > target
The hint representing the intended GPU buffer type to use with this buffer view.
Definition BufferView.h:64
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29