Rename // NXT API to // Dawn API

This commit is contained in:
Corentin Wallez 2018-07-18 15:20:28 +02:00 committed by Corentin Wallez
parent a4da03249c
commit 0927ea549c
22 changed files with 27 additions and 27 deletions

View File

@ -51,7 +51,7 @@ namespace backend {
public: public:
BindGroupBuilder(DeviceBase* device); BindGroupBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetLayout(BindGroupLayoutBase* layout); void SetLayout(BindGroupLayoutBase* layout);
void SetUsage(dawn::BindGroupUsage usage); void SetUsage(dawn::BindGroupUsage usage);

View File

@ -50,7 +50,7 @@ namespace backend {
public: public:
BlendStateBuilder(DeviceBase* device); BlendStateBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetBlendEnabled(bool blendEnabled); void SetBlendEnabled(bool blendEnabled);
void SetAlphaBlend(dawn::BlendOperation blendOperation, void SetAlphaBlend(dawn::BlendOperation blendOperation,
dawn::BlendFactor srcFactor, dawn::BlendFactor srcFactor,

View File

@ -41,7 +41,7 @@ namespace backend {
DeviceBase* GetDevice() const; DeviceBase* GetDevice() const;
// NXT API // Dawn API
BufferViewBuilder* CreateBufferViewBuilder(); BufferViewBuilder* CreateBufferViewBuilder();
void SetSubData(uint32_t start, uint32_t count, const uint8_t* data); void SetSubData(uint32_t start, uint32_t count, const uint8_t* data);
void MapReadAsync(uint32_t start, void MapReadAsync(uint32_t start,
@ -84,7 +84,7 @@ namespace backend {
public: public:
BufferBuilder(DeviceBase* device); BufferBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetAllowedUsage(dawn::BufferUsageBit usage); void SetAllowedUsage(dawn::BufferUsageBit usage);
void SetInitialUsage(dawn::BufferUsageBit usage); void SetInitialUsage(dawn::BufferUsageBit usage);
void SetSize(uint32_t size); void SetSize(uint32_t size);
@ -118,7 +118,7 @@ namespace backend {
public: public:
BufferViewBuilder(DeviceBase* device, BufferBase* buffer); BufferViewBuilder(DeviceBase* device, BufferBase* buffer);
// NXT API // Dawn API
void SetExtent(uint32_t offset, uint32_t size); void SetExtent(uint32_t offset, uint32_t size);
private: private:

View File

@ -49,7 +49,7 @@ namespace backend {
// Returns true for success cases, and calls the callback with appropriate status. // Returns true for success cases, and calls the callback with appropriate status.
bool HandleResult(RefCounted* result); bool HandleResult(RefCounted* result);
// NXT API // Dawn API
void SetErrorCallback(dawn::BuilderErrorCallback callback, void SetErrorCallback(dawn::BuilderErrorCallback callback,
dawn::CallbackUserdata userdata1, dawn::CallbackUserdata userdata1,
dawn::CallbackUserdata userdata2); dawn::CallbackUserdata userdata2);
@ -80,7 +80,7 @@ namespace backend {
template <typename T> template <typename T>
class Builder : public BuilderBase { class Builder : public BuilderBase {
public: public:
// NXT API // Dawn API
T* GetResult(); T* GetResult();
protected: protected:

View File

@ -60,7 +60,7 @@ namespace backend {
CommandIterator AcquireCommands(); CommandIterator AcquireCommands();
std::vector<PassResourceUsage> AcquirePassResourceUsage(); std::vector<PassResourceUsage> AcquirePassResourceUsage();
// NXT API // Dawn API
void BeginComputePass(); void BeginComputePass();
void BeginRenderPass(RenderPassDescriptorBase* info); void BeginRenderPass(RenderPassDescriptorBase* info);
void CopyBufferToBuffer(BufferBase* source, void CopyBufferToBuffer(BufferBase* source,

View File

@ -59,7 +59,7 @@ namespace backend {
public: public:
DepthStencilStateBuilder(DeviceBase* device); DepthStencilStateBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetDepthCompareFunction(dawn::CompareFunction depthCompareFunction); void SetDepthCompareFunction(dawn::CompareFunction depthCompareFunction);
void SetDepthWriteEnabled(bool enabled); void SetDepthWriteEnabled(bool enabled);
void SetStencilFunction(dawn::Face face, void SetStencilFunction(dawn::Face face,

View File

@ -80,7 +80,7 @@ namespace backend {
const dawn::BindGroupLayoutDescriptor* descriptor); const dawn::BindGroupLayoutDescriptor* descriptor);
void UncacheBindGroupLayout(BindGroupLayoutBase* obj); void UncacheBindGroupLayout(BindGroupLayoutBase* obj);
// NXT API // Dawn API
BindGroupBuilder* CreateBindGroupBuilder(); BindGroupBuilder* CreateBindGroupBuilder();
BindGroupLayoutBase* CreateBindGroupLayout( BindGroupLayoutBase* CreateBindGroupLayout(
const dawn::BindGroupLayoutDescriptor* descriptor); const dawn::BindGroupLayoutDescriptor* descriptor);

View File

@ -63,7 +63,7 @@ namespace backend {
public: public:
InputStateBuilder(DeviceBase* device); InputStateBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetAttribute(uint32_t shaderLocation, void SetAttribute(uint32_t shaderLocation,
uint32_t bindingSlot, uint32_t bindingSlot,
dawn::VertexFormat format, dawn::VertexFormat format,

View File

@ -67,7 +67,7 @@ namespace backend {
const StageInfo& GetStageInfo(dawn::ShaderStage stage) const; const StageInfo& GetStageInfo(dawn::ShaderStage stage) const;
BuilderBase* GetParentBuilder() const; BuilderBase* GetParentBuilder() const;
// NXT API // Dawn API
void SetLayout(PipelineLayoutBase* layout); void SetLayout(PipelineLayoutBase* layout);
void SetStage(dawn::ShaderStage stage, ShaderModuleBase* module, const char* entryPoint); void SetStage(dawn::ShaderStage stage, ShaderModuleBase* module, const char* entryPoint);

View File

@ -30,7 +30,7 @@ namespace backend {
uint32_t GetExternalRefs() const; uint32_t GetExternalRefs() const;
uint32_t GetInternalRefs() const; uint32_t GetInternalRefs() const;
// NXT API // Dawn API
void Reference(); void Reference();
void Release(); void Release();

View File

@ -76,7 +76,7 @@ namespace backend {
public: public:
RenderPassDescriptorBuilder(DeviceBase* device); RenderPassDescriptorBuilder(DeviceBase* device);
// NXT API // Dawn API
RenderPassDescriptorBase* GetResultImpl() override; RenderPassDescriptorBase* GetResultImpl() override;
void SetColorAttachment(uint32_t attachment, void SetColorAttachment(uint32_t attachment,
TextureViewBase* textureView, TextureViewBase* textureView,

View File

@ -63,7 +63,7 @@ namespace backend {
public: public:
RenderPipelineBuilder(DeviceBase* device); RenderPipelineBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetColorAttachmentFormat(uint32_t attachmentSlot, dawn::TextureFormat format); void SetColorAttachmentFormat(uint32_t attachmentSlot, dawn::TextureFormat format);
void SetColorAttachmentBlendState(uint32_t attachmentSlot, BlendStateBase* blendState); void SetColorAttachmentBlendState(uint32_t attachmentSlot, BlendStateBase* blendState);
void SetDepthStencilAttachmentFormat(dawn::TextureFormat format); void SetDepthStencilAttachmentFormat(dawn::TextureFormat format);

View File

@ -81,7 +81,7 @@ namespace backend {
std::vector<uint32_t> AcquireSpirv(); std::vector<uint32_t> AcquireSpirv();
// NXT API // Dawn API
void SetSource(uint32_t codeSize, const uint32_t* code); void SetSource(uint32_t codeSize, const uint32_t* code);
private: private:

View File

@ -31,7 +31,7 @@ namespace backend {
DeviceBase* GetDevice(); DeviceBase* GetDevice();
// NXT API // Dawn API
void Configure(dawn::TextureFormat format, void Configure(dawn::TextureFormat format,
dawn::TextureUsageBit allowedUsage, dawn::TextureUsageBit allowedUsage,
uint32_t width, uint32_t width,
@ -58,7 +58,7 @@ namespace backend {
public: public:
SwapChainBuilder(DeviceBase* device); SwapChainBuilder(DeviceBase* device);
// NXT API // Dawn API
SwapChainBase* GetResultImpl() override; SwapChainBase* GetResultImpl() override;
void SetImplementation(uint64_t implementation); void SetImplementation(uint64_t implementation);

View File

@ -49,7 +49,7 @@ namespace backend {
dawn::TextureUsageBit GetAllowedUsage() const; dawn::TextureUsageBit GetAllowedUsage() const;
DeviceBase* GetDevice() const; DeviceBase* GetDevice() const;
// NXT API // Dawn API
TextureViewBuilder* CreateTextureViewBuilder(); TextureViewBuilder* CreateTextureViewBuilder();
private: private:
@ -66,7 +66,7 @@ namespace backend {
public: public:
TextureBuilder(DeviceBase* device); TextureBuilder(DeviceBase* device);
// NXT API // Dawn API
void SetDimension(dawn::TextureDimension dimension); void SetDimension(dawn::TextureDimension dimension);
void SetExtent(uint32_t width, uint32_t height, uint32_t depth); void SetExtent(uint32_t width, uint32_t height, uint32_t depth);
void SetFormat(dawn::TextureFormat format); void SetFormat(dawn::TextureFormat format);

View File

@ -38,7 +38,7 @@ namespace backend { namespace d3d12 {
dawn::BufferUsageBit usage); dawn::BufferUsageBit usage);
private: private:
// NXT API // Dawn API
void SetSubDataImpl(uint32_t start, uint32_t count, const uint8_t* data) override; void SetSubDataImpl(uint32_t start, uint32_t count, const uint8_t* data) override;
void MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override; void MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override;
void MapWriteAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override; void MapWriteAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override;

View File

@ -28,7 +28,7 @@ namespace backend { namespace d3d12 {
public: public:
Queue(Device* device); Queue(Device* device);
// NXT API // Dawn API
void Submit(uint32_t numCommands, CommandBuffer* const* commands); void Submit(uint32_t numCommands, CommandBuffer* const* commands);
private: private:

View File

@ -26,7 +26,7 @@ namespace backend { namespace metal {
public: public:
Queue(Device* device); Queue(Device* device);
// NXT API // Dawn API
void Submit(uint32_t numCommands, CommandBuffer* const* commands); void Submit(uint32_t numCommands, CommandBuffer* const* commands);
}; };

View File

@ -160,7 +160,7 @@ namespace backend { namespace null {
Queue(Device* device); Queue(Device* device);
~Queue(); ~Queue();
// NXT API // Dawn API
void Submit(uint32_t numCommands, CommandBuffer* const* commands); void Submit(uint32_t numCommands, CommandBuffer* const* commands);
}; };

View File

@ -26,7 +26,7 @@ namespace backend { namespace opengl {
public: public:
Queue(Device* device); Queue(Device* device);
// NXT API // Dawn API
void Submit(uint32_t numCommands, CommandBuffer* const* commands); void Submit(uint32_t numCommands, CommandBuffer* const* commands);
}; };

View File

@ -62,7 +62,7 @@ namespace backend { namespace vulkan {
void SubmitPendingCommands(); void SubmitPendingCommands();
void AddWaitSemaphore(VkSemaphore semaphore); void AddWaitSemaphore(VkSemaphore semaphore);
// NXT API // Dawn API
BindGroupBase* CreateBindGroup(BindGroupBuilder* builder) override; BindGroupBase* CreateBindGroup(BindGroupBuilder* builder) override;
BlendStateBase* CreateBlendState(BlendStateBuilder* builder) override; BlendStateBase* CreateBlendState(BlendStateBuilder* builder) override;
BufferBase* CreateBuffer(BufferBuilder* builder) override; BufferBase* CreateBuffer(BufferBuilder* builder) override;

View File

@ -27,7 +27,7 @@ namespace backend { namespace vulkan {
Queue(Device* device); Queue(Device* device);
~Queue(); ~Queue();
// NXT API // Dawn API
void Submit(uint32_t numCommands, CommandBuffer* const* commands); void Submit(uint32_t numCommands, CommandBuffer* const* commands);
}; };