Add GPUDevice::CreateConstantBuffer for custom constants buffers usage
This commit is contained in:
@@ -189,6 +189,11 @@ GPUSwapChain* GPUDeviceNull::CreateSwapChain(Window* window)
|
||||
return New<GPUSwapChainNull>(window);
|
||||
}
|
||||
|
||||
GPUConstantBuffer* GPUDeviceNull::CreateConstantBuffer(uint32 size, const StringView& name)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
GPUDevice* CreateGPUDeviceNull()
|
||||
{
|
||||
return GPUDeviceNull::Create();
|
||||
|
||||
@@ -48,6 +48,7 @@ public:
|
||||
GPUBuffer* CreateBuffer(const StringView& name) override;
|
||||
GPUSampler* CreateSampler() override;
|
||||
GPUSwapChain* CreateSwapChain(Window* window) override;
|
||||
GPUConstantBuffer* CreateConstantBuffer(uint32 size, const StringView& name) override;
|
||||
};
|
||||
|
||||
extern GPUDevice* CreateGPUDeviceNull();
|
||||
|
||||
@@ -19,11 +19,6 @@ protected:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
GPUConstantBuffer* CreateCB(const String& name, uint32 size, MemoryReadStream& stream) override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
// [GPUShader]
|
||||
|
||||
Reference in New Issue
Block a user