aboutsummaryrefslogtreecommitdiffstatsci
path: root/vulkan/StructTypeAttribute.cs
blob: 55f81775d4dc1bd7b63585727b2ac70c05ea3a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2021  Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;

namespace Vulkan
{
    /// <summary>
    /// tel the rewriter to automatically set the structure type
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)]
    public class StructureTypeAttribute : Attribute
    {
        int structureType;
        public StructureTypeAttribute (int value) : base() {
            structureType = value;
        }
        public int StructureType => structureType;
    }
}