Open FitiLsan opened 4 years ago
same problem, no texture can be use
@A2K any ideas here? would love to have this functionality
Doesn't work for me at all. Output is always black.
Texture2D myTex;
sampler myTexSampler =
sampler_state
{
Texture = <myTex>;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
};
float4 main(in float2 uv: TEXCOORD0):SV_TARGET
{
return myTex.Sample(myTexSampler, uv);
}
这段代码可以正常釆样纹理
Hi! When I'm trying to visualize my texture in pixel shader preview I'am getting black output
MVS Code Version 1.39.1![UuMnhJm-U6c 1](https://user-images.githubusercontent.com/25078311/66682160-02969180-ec7d-11e9-8c15-bc7c6fbc68e0.jpg)