Skip to content

uniform struct #848

Answered by vsg-dev
hejian01 asked this question in Q&A
Jun 12, 2023 · 5 comments · 5 replies
Discussion options

You must be logged in to vote

I don't know why you have the PlaneInfo defined in case 1, it should be irrelevant to the operation. However, in general just assigning the Data to DescrptoriBuffer as you have done should be OK, and they only bit missing will be calling data->dirty(). You don't say whether you've done this or not, or in what way it doesn't work.

The second doesn't included PlateInfo, is it the same definition as case 1? If so I can't see how passing pointers to objects in main memory will ever work when passing data to the GPU.

Could it be that case 1 actually worked and case 2 failed and just typed things up wrong?

My recommendation is to have a look at the vsgclip example, this illustrates passing dyna…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@hejian01
Comment options

Answer selected by vsg-dev
Comment options

You must be logged in to vote
1 reply
@robertosfield
Comment options

Comment options

You must be logged in to vote
1 reply
@robertosfield
Comment options

Comment options

You must be logged in to vote
2 replies
@robertosfield
Comment options

@robertosfield
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants