Rename // NXT API to // Dawn API
This commit is contained in:
parent
a4da03249c
commit
0927ea549c
|
@ -51,7 +51,7 @@ namespace backend {
|
|||
public:
|
||||
BindGroupBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetLayout(BindGroupLayoutBase* layout);
|
||||
void SetUsage(dawn::BindGroupUsage usage);
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace backend {
|
|||
public:
|
||||
BlendStateBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetBlendEnabled(bool blendEnabled);
|
||||
void SetAlphaBlend(dawn::BlendOperation blendOperation,
|
||||
dawn::BlendFactor srcFactor,
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace backend {
|
|||
|
||||
DeviceBase* GetDevice() const;
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
BufferViewBuilder* CreateBufferViewBuilder();
|
||||
void SetSubData(uint32_t start, uint32_t count, const uint8_t* data);
|
||||
void MapReadAsync(uint32_t start,
|
||||
|
@ -84,7 +84,7 @@ namespace backend {
|
|||
public:
|
||||
BufferBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetAllowedUsage(dawn::BufferUsageBit usage);
|
||||
void SetInitialUsage(dawn::BufferUsageBit usage);
|
||||
void SetSize(uint32_t size);
|
||||
|
@ -118,7 +118,7 @@ namespace backend {
|
|||
public:
|
||||
BufferViewBuilder(DeviceBase* device, BufferBase* buffer);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetExtent(uint32_t offset, uint32_t size);
|
||||
|
||||
private:
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace backend {
|
|||
// Returns true for success cases, and calls the callback with appropriate status.
|
||||
bool HandleResult(RefCounted* result);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetErrorCallback(dawn::BuilderErrorCallback callback,
|
||||
dawn::CallbackUserdata userdata1,
|
||||
dawn::CallbackUserdata userdata2);
|
||||
|
@ -80,7 +80,7 @@ namespace backend {
|
|||
template <typename T>
|
||||
class Builder : public BuilderBase {
|
||||
public:
|
||||
// NXT API
|
||||
// Dawn API
|
||||
T* GetResult();
|
||||
|
||||
protected:
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace backend {
|
|||
CommandIterator AcquireCommands();
|
||||
std::vector<PassResourceUsage> AcquirePassResourceUsage();
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void BeginComputePass();
|
||||
void BeginRenderPass(RenderPassDescriptorBase* info);
|
||||
void CopyBufferToBuffer(BufferBase* source,
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace backend {
|
|||
public:
|
||||
DepthStencilStateBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetDepthCompareFunction(dawn::CompareFunction depthCompareFunction);
|
||||
void SetDepthWriteEnabled(bool enabled);
|
||||
void SetStencilFunction(dawn::Face face,
|
||||
|
|
|
@ -80,7 +80,7 @@ namespace backend {
|
|||
const dawn::BindGroupLayoutDescriptor* descriptor);
|
||||
void UncacheBindGroupLayout(BindGroupLayoutBase* obj);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
BindGroupBuilder* CreateBindGroupBuilder();
|
||||
BindGroupLayoutBase* CreateBindGroupLayout(
|
||||
const dawn::BindGroupLayoutDescriptor* descriptor);
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace backend {
|
|||
public:
|
||||
InputStateBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetAttribute(uint32_t shaderLocation,
|
||||
uint32_t bindingSlot,
|
||||
dawn::VertexFormat format,
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace backend {
|
|||
const StageInfo& GetStageInfo(dawn::ShaderStage stage) const;
|
||||
BuilderBase* GetParentBuilder() const;
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetLayout(PipelineLayoutBase* layout);
|
||||
void SetStage(dawn::ShaderStage stage, ShaderModuleBase* module, const char* entryPoint);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace backend {
|
|||
uint32_t GetExternalRefs() const;
|
||||
uint32_t GetInternalRefs() const;
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Reference();
|
||||
void Release();
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace backend {
|
|||
public:
|
||||
RenderPassDescriptorBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
RenderPassDescriptorBase* GetResultImpl() override;
|
||||
void SetColorAttachment(uint32_t attachment,
|
||||
TextureViewBase* textureView,
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace backend {
|
|||
public:
|
||||
RenderPipelineBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetColorAttachmentFormat(uint32_t attachmentSlot, dawn::TextureFormat format);
|
||||
void SetColorAttachmentBlendState(uint32_t attachmentSlot, BlendStateBase* blendState);
|
||||
void SetDepthStencilAttachmentFormat(dawn::TextureFormat format);
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace backend {
|
|||
|
||||
std::vector<uint32_t> AcquireSpirv();
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetSource(uint32_t codeSize, const uint32_t* code);
|
||||
|
||||
private:
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace backend {
|
|||
|
||||
DeviceBase* GetDevice();
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Configure(dawn::TextureFormat format,
|
||||
dawn::TextureUsageBit allowedUsage,
|
||||
uint32_t width,
|
||||
|
@ -58,7 +58,7 @@ namespace backend {
|
|||
public:
|
||||
SwapChainBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
SwapChainBase* GetResultImpl() override;
|
||||
void SetImplementation(uint64_t implementation);
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace backend {
|
|||
dawn::TextureUsageBit GetAllowedUsage() const;
|
||||
DeviceBase* GetDevice() const;
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
TextureViewBuilder* CreateTextureViewBuilder();
|
||||
|
||||
private:
|
||||
|
@ -66,7 +66,7 @@ namespace backend {
|
|||
public:
|
||||
TextureBuilder(DeviceBase* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void SetDimension(dawn::TextureDimension dimension);
|
||||
void SetExtent(uint32_t width, uint32_t height, uint32_t depth);
|
||||
void SetFormat(dawn::TextureFormat format);
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace backend { namespace d3d12 {
|
|||
dawn::BufferUsageBit usage);
|
||||
|
||||
private:
|
||||
// NXT API
|
||||
// Dawn API
|
||||
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 MapWriteAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace backend { namespace d3d12 {
|
|||
public:
|
||||
Queue(Device* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
|
||||
|
||||
private:
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace backend { namespace metal {
|
|||
public:
|
||||
Queue(Device* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
|
||||
};
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ namespace backend { namespace null {
|
|||
Queue(Device* device);
|
||||
~Queue();
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
|
||||
};
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace backend { namespace opengl {
|
|||
public:
|
||||
Queue(Device* device);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
|
||||
};
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace backend { namespace vulkan {
|
|||
void SubmitPendingCommands();
|
||||
void AddWaitSemaphore(VkSemaphore semaphore);
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
BindGroupBase* CreateBindGroup(BindGroupBuilder* builder) override;
|
||||
BlendStateBase* CreateBlendState(BlendStateBuilder* builder) override;
|
||||
BufferBase* CreateBuffer(BufferBuilder* builder) override;
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace backend { namespace vulkan {
|
|||
Queue(Device* device);
|
||||
~Queue();
|
||||
|
||||
// NXT API
|
||||
// Dawn API
|
||||
void Submit(uint32_t numCommands, CommandBuffer* const* commands);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue