Home
last modified time | relevance | path

Searched refs:bufferView (Results 1 - 5 of 5) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp265 /* StoreBufferView hashes bufferView and stores it if needed. If dataAlignment is non-zero, data from aBufferView is
267 BufferView* StoreBufferView(const BufferView& bufferView, uint32_t dataAlignment) in StoreBufferView() argument
270 bufferView.buffer, bufferView.byteLength, bufferView.byteOffset, bufferView.byteStride, bufferView.target); in StoreBufferView()
274 usedBufferViews_[bufferViewIndex] = make_unique<BufferView>(bufferView); in StoreBufferView()
280 buffer_.data.insert(buffer_.data.end(), bufferView.data, bufferView in StoreBufferView()
289 BufferView* bufferView = nullptr; StoreAccessor() local
572 BufferView bufferView; StoreInverseBindMatrices() local
724 BufferView bufferView; AnimationInput() local
784 BufferView bufferView; AnimationOutput() local
1307 BufferView bufferView; ExportImageData() local
[all...]
H A Dgltf2_util.cpp62 if (!accessor.bufferView->data) { in Read()
66 const size_t startOffset = accessor.bufferView->byteOffset + accessor.byteOffset; in Read()
67 const size_t bufferLength = accessor.bufferView->buffer->byteLength; in Read()
70 const uint8_t* src = accessor.bufferView->data + accessor.byteOffset; in Read()
75 const size_t byteStride = accessor.bufferView->byteStride; in Read()
173 auto const& sparseIndicesBufferView = accessor.sparse.indices.bufferView; in LoadSparseAccessor()
181 auto const byteStride = accessor.bufferView->byteStride; in LoadSparseAccessor()
187 auto const& sparseValuesBufferView = accessor.sparse.values.bufferView; in LoadSparseAccessor()
195 auto const byteStride = accessor.bufferView->byteStride; in LoadSparseAccessor()
1136 const auto* bufferView in LoadData() local
[all...]
H A Dgltf2_data_structures.h206 // When two or more accessors use the same bufferView, this field must be defined.
216 // The bufferView with sparse indices.
217 // Referenced bufferView can't have ARRAY_BUFFER or
219 BufferView* bufferView { nullptr };
221 // The offset relative to the start of the bufferView in bytes.
235 // The bufferView with sparse values.
236 // Referenced bufferView can't have ARRAY_BUFFER or
238 BufferView* bufferView { nullptr };
240 // The offset relative to the start of the bufferView in bytes.
261 // The bufferView
[all...]
H A Dgltf2_loader.cpp407 SetError(loadResult, "Failed to read bufferView.buffer");
410 SetError(loadResult, "bufferView.buffer isn't valid index");
421 SetError(loadResult, "Failed to read bufferView.byteLength");
424 SetError(loadResult, "bufferView.byteLength was smaller than 1 byte");
437 SetError(loadResult, "bufferView.byteOffset isn't valid offset");
440 SetError(loadResult, "bufferView.byteLength is larger than buffer.byteLength");
453 SetError(loadResult, "bufferView.byteStride isn't valid stride");
469 SetError(loadResult, "bufferView.target isn't valid target");
540 BufferView* bufferView = nullptr;
543 if (!ParseOptionalNumber<size_t>(loadResult, bufferIndex, jsonData, "bufferView", GLTF_INVALID_INDE
[all...]
H A Dgltf2_importer.cpp1260 const GLTF2::BufferView* bufferView = image.bufferView; in GatherImageData() local
1262 if (bufferView && image.type != GLTF2::MimeType::INVALID) { in GatherImageData()
1263 if (bufferView->data) { in GatherImageData()
1264 raw.reserve(image.bufferView->byteLength); in GatherImageData()
1265 raw.insert(raw.end(), image.bufferView->data, bufferView->data + bufferView->byteLength); in GatherImageData()

Completed in 11 milliseconds