Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSBO and Sampler-2d Array #249

Open
Travis-OBrien opened this issue Feb 13, 2024 · 0 comments
Open

SSBO and Sampler-2d Array #249

Travis-OBrien opened this issue Feb 13, 2024 · 0 comments

Comments

@Travis-OBrien
Copy link

Is there any way Varjo can output an SSBO which contains an array of Sampler-2d?

layout(binding = 0,std430) buffer ssbo {
  sampler2D tx[];
};

My current attempt:

(define-vari-struct ssbo ()
  (tx (:sampler-2d 100) :accessor tx))

;; note: in glsl I don't need to specify the size of the array, I'm unsure what to do about (:sampler-2d 100).

(make-stage :fragment 
    nil
    '((-ssbo ssbo :ssbo :std-430))
    '(:450)
    '((values (vec4 1.0 1.0 1.0 1.0))))

Calling translate on the :fragment stage will result in this error message:

Varjo: The argument -SSBO has type SSBO which contains opaque data.
This is invalid in this context

I'm assuming the error message is correct and I'm misunderstanding how to use Varjo...
Any help is appreciated! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant