Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] I only need two though ?

[DiscordArchive] I only need two though ?

[DiscordArchive] I only need two though ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-02-2024, 09:41 PM
#1
Archived author: Titi • Posted: 2024-02-02T21:41:22.645000+00:00
Original source

I only need two though ?
rektbyfaith
02-02-2024, 09:41 PM #1

Archived author: Titi • Posted: 2024-02-02T21:41:22.645000+00:00
Original source

I only need two though ?

rektbyfaith
Administrator
0
02-02-2024, 09:41 PM
#2
Archived author: Deamon • Posted: 2024-02-02T21:41:51.018000+00:00
Original source

yeah, but `std140` rules. The compiler would add two bytes as padding either way
rektbyfaith
02-02-2024, 09:41 PM #2

Archived author: Deamon • Posted: 2024-02-02T21:41:51.018000+00:00
Original source

yeah, but `std140` rules. The compiler would add two bytes as padding either way

rektbyfaith
Administrator
0
02-02-2024, 09:42 PM
#3
Archived author: Titi • Posted: 2024-02-02T21:42:11.131000+00:00
Original source

i haven't read on that
rektbyfaith
02-02-2024, 09:42 PM #3

Archived author: Titi • Posted: 2024-02-02T21:42:11.131000+00:00
Original source

i haven't read on that

rektbyfaith
Administrator
0
02-02-2024, 09:42 PM
#4
Archived author: Titi • Posted: 2024-02-02T21:42:28.692000+00:00
Original source

that makes sense then
[Image: image.png?ex=690c6d84&is=690b1c04&hm=6f5...7ada8a30d&]
rektbyfaith
02-02-2024, 09:42 PM #4

Archived author: Titi • Posted: 2024-02-02T21:42:28.692000+00:00
Original source

that makes sense then
[Image: image.png?ex=690c6d84&is=690b1c04&hm=6f5...7ada8a30d&]

rektbyfaith
Administrator
0
02-02-2024, 09:42 PM
#5
Archived author: Deamon • Posted: 2024-02-02T21:42:38.073000+00:00
Original source

yup
rektbyfaith
02-02-2024, 09:42 PM #5

Archived author: Deamon • Posted: 2024-02-02T21:42:38.073000+00:00
Original source

yup

rektbyfaith
Administrator
0
02-02-2024, 09:42 PM
#6
Archived author: Titi • Posted: 2024-02-02T21:42:47.591000+00:00
Original source

thanks
rektbyfaith
02-02-2024, 09:42 PM #6

Archived author: Titi • Posted: 2024-02-02T21:42:47.591000+00:00
Original source

thanks

rektbyfaith
Administrator
0
02-02-2024, 09:43 PM
#7
Archived author: Titi • Posted: 2024-02-02T21:43:04.208000+00:00
Original source

I have more data to pass anyways, so perfect
rektbyfaith
02-02-2024, 09:43 PM #7

Archived author: Titi • Posted: 2024-02-02T21:43:04.208000+00:00
Original source

I have more data to pass anyways, so perfect

rektbyfaith
Administrator
0
02-02-2024, 09:46 PM
#8
Archived author: Titi • Posted: 2024-02-02T21:46:03.529000+00:00
Original source

is passing the whole ivec4 at once more performance than 4 ints individually ?
rektbyfaith
02-02-2024, 09:46 PM #8

Archived author: Titi • Posted: 2024-02-02T21:46:03.529000+00:00
Original source

is passing the whole ivec4 at once more performance than 4 ints individually ?

rektbyfaith
Administrator
0
02-02-2024, 09:46 PM
#9
Archived author: Titi • Posted: 2024-02-02T21:46:09.986000+00:00
Original source

or just easier to manage the padding
rektbyfaith
02-02-2024, 09:46 PM #9

Archived author: Titi • Posted: 2024-02-02T21:46:09.986000+00:00
Original source

or just easier to manage the padding

rektbyfaith
Administrator
0
02-02-2024, 09:48 PM
#10
Archived author: Deamon • Posted: 2024-02-02T21:48:21.356000+00:00
Original source

The padding thing. It's pain in the ass. So I use `vec4`, `ivec4` and `mat4`/`mat3` everywhere in UBO, and try to manually pack the data like in that screenshot with `Pad2` you posted.

This way I can stop worrying about compiler suddenly adding a padding, which is annoying to debug
rektbyfaith
02-02-2024, 09:48 PM #10

Archived author: Deamon • Posted: 2024-02-02T21:48:21.356000+00:00
Original source

The padding thing. It's pain in the ass. So I use `vec4`, `ivec4` and `mat4`/`mat3` everywhere in UBO, and try to manually pack the data like in that screenshot with `Pad2` you posted.

This way I can stop worrying about compiler suddenly adding a padding, which is annoying to debug

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing