Skip to content

Commit

Permalink
LOD Bias
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Jun 27, 2024
1 parent 6434cc7 commit 3e4edc3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/SharpMetal/Metal/MTLSampler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ public bool LodAverage
set => ObjectiveCRuntime.objc_msgSend(NativePtr, sel_setLodAverage, value);
}

/// <summary>
/// This is a private Metal API.
/// It is not recommended for use in any production applications,
/// and may break at any time without warning. Hic sunt dracones.
/// </summary>
public float LodBias
{
get => ObjectiveCRuntime.float_objc_msgSend(NativePtr, sel_lodBias);
set => ObjectiveCRuntime.objc_msgSend(NativePtr, sel_setLodBias, value);
}

public MTLCompareFunction CompareFunction
{
get => (MTLCompareFunction)ObjectiveCRuntime.ulong_objc_msgSend(NativePtr, sel_compareFunction);
Expand Down Expand Up @@ -170,6 +181,8 @@ public NSString Label
private static readonly Selector sel_setLodMaxClamp = "setLodMaxClamp:";
private static readonly Selector sel_lodAverage = "lodAverage";
private static readonly Selector sel_setLodAverage = "setLodAverage:";
private static readonly Selector sel_lodBias = "lodBias";
private static readonly Selector sel_setLodBias = "setLodBias:";
private static readonly Selector sel_compareFunction = "compareFunction";
private static readonly Selector sel_setCompareFunction = "setCompareFunction:";
private static readonly Selector sel_supportArgumentBuffers = "supportArgumentBuffers";
Expand Down

0 comments on commit 3e4edc3

Please sign in to comment.