Add GPUDevice::CreateConstantBuffer for custom constants buffers usage

This commit is contained in:
Wojtek Figat
2022-11-26 21:17:05 +01:00
parent 39dc439cd8
commit 189575efec
20 changed files with 73 additions and 91 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -19,11 +19,6 @@ protected:
return nullptr;
}
GPUConstantBuffer* CreateCB(const String& name, uint32 size, MemoryReadStream& stream) override
{
return nullptr;
}
public:
// [GPUShader]