mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Add standalone testbed
This commit is contained in:
parent
5ddf473450
commit
b8ce2d4001
21 changed files with 948 additions and 2 deletions
18
imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal
Normal file
18
imgui/StandaloneImGuiTestbed/Shaders/Metal/imgui-frag.metal
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <metal_stdlib>
|
||||
using namespace metal;
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float4 pos [[ position ]];
|
||||
float4 col;
|
||||
float2 uv;
|
||||
};
|
||||
|
||||
fragment float4 FS(
|
||||
PS_INPUT input [[ stage_in ]],
|
||||
texture2d<float> FontTexture [[ texture(0) ]],
|
||||
sampler FontSampler [[ sampler(0) ]])
|
||||
{
|
||||
float4 out_col = input.col * FontTexture.sample(FontSampler, input.uv);
|
||||
return out_col;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue