summaryrefslogtreecommitdiffstats
path: root/tools/gfx/metal/metal-vertex-layout.h
blob: 26af7f496d57b04c42d2f16c78288904ddf352e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// metal-vertex-layout.h
#pragma once

#include "metal-base.h"

namespace gfx
{

using namespace Slang;

namespace metal
{

class InputLayoutImpl : public InputLayoutBase
{
public:
    List<InputElementDesc> m_inputElements;
    List<VertexStreamDesc> m_vertexStreams;

    Result init(const IInputLayout::Desc& desc);
    NS::SharedPtr<MTL::VertexDescriptor> createVertexDescriptor(
        NS::UInteger vertexBufferIndexOffset);
};

} // namespace metal
} // namespace gfx