Question about shader, can any "tXX" be missing from code?

Post Reply
  • Author
  • Message
Offline
Posts: 2
Joined: 13 Feb 2017, 04:29

Question about shader, can any "tXX" be missing from code?

I mean this..
///partial code///
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB12[43], immediateIndexed
dcl_constantbuffer CB0[2], immediateIndexed
dcl_constantbuffer CB1[9], immediateIndexed
dcl_constantbuffer CB2[30], dynamicIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s3, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t3
dcl_input_ps linear v1.xy
///partial code///

Shouldnt there be t2? And if there isnt.. does it mean that texture is missing? Thanks for answers!

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17427
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Question about shader, can any "tXX" be missing from cod

No, t2 is not required. What is set by the game, that is used, t2 is not set, so not declared in shader and not used.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
Post Reply