GLTF Loader: made Model::GPUDataInitialized atomic
assiduous
2 years ago
32 | 32 |
#include <cfloat>
|
33 | 33 |
#include <unordered_map>
|
34 | 34 |
#include <mutex>
|
|
35 |
#include <atomic>
|
35 | 36 |
|
36 | 37 |
#include "../../../DiligentCore/Graphics/GraphicsEngine/interface/RenderDevice.h"
|
37 | 38 |
#include "../../../DiligentCore/Graphics/GraphicsEngine/interface/DeviceContext.h"
|
|
424 | 425 |
|
425 | 426 |
bool IsGPUDataInitialized() const
|
426 | 427 |
{
|
427 | |
return GPUDataInitialized;
|
|
428 |
return GPUDataInitialized.load();
|
428 | 429 |
}
|
429 | 430 |
|
430 | 431 |
void Transform(const float4x4& Matrix);
|
|
488 | 489 |
Node* FindNode(Node* parent, Uint32 index);
|
489 | 490 |
Node* NodeFromIndex(uint32_t index);
|
490 | 491 |
|
491 | |
bool GPUDataInitialized = false;
|
|
492 |
std::atomic_bool GPUDataInitialized = false;
|
492 | 493 |
|
493 | 494 |
struct BufferInfo
|
494 | 495 |
{
|