Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SamplerState G_SamplerState[16] : register(s0);
- Texture2D G_Texture2D[16] : register(t0);
- struct sampler2D { int id; }
- DECL_SAMPLER(Type, Name, Id) const Type Name = { Id };
- #define tex2D(S, T) G_Texture2D[S.id].Sample(G_SamplerState[S.id], T.xy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement