浏览代码

docs: Fix Rendering Graphics documentation

nixflorp 1 月之前
父节点
当前提交
671fb57daf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/sphinx/graphics.rst

+ 2 - 2
docs/sphinx/graphics.rst

@@ -265,8 +265,8 @@ would be used:
    uniform texture2d image;
    uniform texture2d image;
 
 
    struct VertInOut {
    struct VertInOut {
-           float4 my_position : POSITION;
-           float2 my_texcoord : TEXCOORD0;
+           float4 pos : POSITION;
+           float2 uv : TEXCOORD0;
    };
    };
 
 
    VertInOut MyVertexShaderFunc(VertInOut vert_in)
    VertInOut MyVertexShaderFunc(VertInOut vert_in)