- 新增 Platform 模块:PlatformTypes.h, Window.h, WindowsWindow - 新增 Input 模块:InputTypes, InputEvent, InputAxis, InputModule, InputManager - 新增 WindowsInputModule 处理 Win32 消息转换 - 将 RHI 集成测试从 render_model 迁移到 sphere - 更新 CMakeLists.txt 添加 Platform 和 Input 模块
23 lines
454 B
HLSL
23 lines
454 B
HLSL
struct Vertex {
|
|
float4 pos : POSITION;
|
|
float4 texcoord : TEXCOORD0;
|
|
};
|
|
|
|
struct VSOut {
|
|
float4 pos : SV_POSITION;
|
|
float4 texcoord : TEXCOORD0;
|
|
};
|
|
|
|
VSOut MainVS(Vertex v) {
|
|
VSOut o;
|
|
o.pos = v.pos;
|
|
o.texcoord = v.texcoord;
|
|
return o;
|
|
}
|
|
|
|
Texture2D T_DiffuseTexture : register(t0);
|
|
SamplerState samplerState : register(s0);
|
|
|
|
float4 MainPS(VSOut i) : SV_TARGET {
|
|
return T_DiffuseTexture.Sample(samplerState, i.texcoord.xy);
|
|
} |