This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
generated from tannergooding/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial untested impl of the bakery rewriter
- Loading branch information
Showing
6 changed files
with
793 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
namespace Silk.NET.Core; | ||
|
||
/// <summary> | ||
/// Indicates that the annotated API is supported using a specific API profile. | ||
/// </summary> | ||
/// <param name="profile">The API profile supported.</param> | ||
[AttributeUsage( | ||
AttributeTargets.Assembly | ||
| AttributeTargets.Class | ||
| AttributeTargets.Constructor | ||
| AttributeTargets.Enum | ||
| AttributeTargets.Event | ||
| AttributeTargets.Field | ||
| AttributeTargets.Interface | ||
| AttributeTargets.Method | ||
| AttributeTargets.Module | ||
| AttributeTargets.Property | ||
| AttributeTargets.Struct, | ||
AllowMultiple = true, | ||
Inherited = false | ||
)] | ||
public class SupportedApiProfileAttribute(string profile) : Attribute | ||
{ | ||
/// <summary> | ||
/// The API profile supported e.g. gl, glcore, gles2, vulkan, vulkansc, etc. | ||
/// </summary> | ||
public string Profile { get; } = profile; | ||
|
||
/// <summary> | ||
/// The API extension required (in its native form). | ||
/// </summary> | ||
public string? Extension { get; init; } | ||
|
||
/// <summary> | ||
/// The minimum version of this API profile required in order to be supported. | ||
/// </summary> | ||
public string? MinVersion { get; init; } | ||
|
||
/// <summary> | ||
/// The maximum version of this API profile required in order to be supported. | ||
/// </summary> | ||
public string? MaxVersion { get; init; } | ||
} |
Oops, something went wrong.