Revision 7292edbd3eba3da7e8490ad19169a7d18283057a authored by Sai Praveen Bangaru on 24 March 2023, 23:50:51 UTC, committed by GitHub on 24 March 2023, 23:50:51 UTC
* Added higher-order differentiability decorators for built-ins + preliminary tests

* Update diff.meta.slang
1 parent e794de0
Raw File
simple-render-pass-layout.h
// simple-render-pass-layout.h
#pragma once

// Implementation of a dummy render pass layout object that stores and holds its
// desc value. Used by targets that does not expose an API object for the render pass
// concept.

#include "slang-gfx.h"
#include "core/slang-com-object.h"
#include "core/slang-basic.h"

namespace gfx
{

class SimpleRenderPassLayout
    : public IRenderPassLayout
    , public Slang::ComObject
{
public:
    SLANG_COM_OBJECT_IUNKNOWN_ALL
    IRenderPassLayout* getInterface(const Slang::Guid& guid);

public:
    Slang::ShortList<TargetAccessDesc> m_renderTargetAccesses;
    TargetAccessDesc m_depthStencilAccess;
    bool m_hasDepthStencil;
    void init(const IRenderPassLayout::Desc& desc);
};

}
back to top