13#include "materials/gpulang/materialtemplatesgpulang.h"
29 virtual void Setup()
override;
47 void Unload(
const Resources::ResourceId
id)
override;
Stream reader for binary XML files.
Definition bxmlreader.h:22
Definition materialloader.h:24
static IndexT RegisterTerrainMaterial(const MaterialInterfaces::TerrainMaterial &terrain)
Bit of a special way to register a terrain material.
Definition materialloader.cc:654
static void * AllocateConstantMemory(SizeT size)
Allocate constant memory explicitly.
Definition materialloader.cc:538
void Unload(const Resources::ResourceId id) override
unload resource (overload to implement resource deallocation)
Definition materialloader.cc:668
virtual void Setup() override
setup resource loader, initiates the placeholder and error resources if valid, so don't forget to run...
Definition materialloader.cc:245
static void FlushMaterialBuffers(const CoreGraphics::CmdBufferId id, const CoreGraphics::QueueType queue)
Update GPU buffers.
Definition materialloader.cc:547
static CoreGraphics::BufferId GetMaterialBuffer(const MaterialTemplatesGPULang::MaterialProperties type)
Get material buffer.
Definition materialloader.cc:635
ResourceInitOutput InitializeResource(const ResourceLoadJob &job, const Ptr< IO::Stream > &stream) override
update reserved resource, the info struct is loader dependent (overload to implement resource dealloc...
Definition materialloader.cc:481
__DeclareClass(MaterialLoader)
static CoreGraphics::BufferId GetMaterialBindingBuffer()
Get material binding buffer.
Definition materialloader.cc:626
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition resourceloader.h:61
QueueType
Definition config.h:40
Instances of wrapped stream classes.
Definition multiplayerfeatureunit.cc:324
Material special version of variant.
Definition graphicsserver.h:40
Compile time configuration options for the CoreGraphics subsystem.
Definition commandbuffer.h:176
Definition resourceloader.h:158
Definition resourceloader.h:182
int SizeT
Definition types.h:42
int IndexT
Definition types.h:41