Please use english language
It is currently 26 Feb 2020, 10:33

All times are UTC





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 10 Dec 2015, 18:15 
Offline
*blah-blah-blah maniac*

Joined: 05 Apr 2014, 10:29
Posts: 557
Location: Taiwan
I'm trying to do something like this in Skyrim


struct VS_TEST_OUT
{
float4 vpos : POSITION;
float2 txcoord : TEXCOORD0;
float2 array[10] : TEXCOORD1;
};

and it cause strange stuff when increasing size.
Is it legit to use array or better to split it across TEXCOORD[n] ?

_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube


Top
 Profile  
 
Tomoko
PostPosted: 10 Dec 2015, 19:26 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
TEXCOORD1, TEXCOORD2, etc allow only 1 vector or scalar to be used, not arrays. So you need to write something like this:
float4 array0_1 : TEXCOORD1;
float4 array2_3 : TEXCOORD2;
float4 array4_5 : TEXCOORD3;
etc.

_________________
i5-4690k, 16Gb RAM, GTX 1060 6Gb, X-Fi Titanium, Win7 x128
I am INFP, not the brutal, godamnit.


Top
 Profile  
 
PostPosted: 13 Dec 2015, 08:18 
Offline
*blah-blah-blah maniac*

Joined: 05 Apr 2014, 10:29
Posts: 557
Location: Taiwan
OK, thx.

_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group