cbaggers / cepl.examples

Some examples for the CEPL library
GNU General Public License v3.0
44 stars 14 forks source link

Varjo: Compilation failed #12

Open collinalexbell opened 6 years ago

collinalexbell commented 6 years ago

Hi, I am trying to manually run the triangles example.

(defstruct-g pos-col
  (position :vec3 :accessor pos)
  (color :vec4 :accessor col))

(defun-g tri-vert ((vert pos-col))
  (values (vector (pos vert) 1.0)
          (col vert)))

When I attempt to run defun-g, I get

Varjo: Compilation Failed:

Stages: VERTEX GEOMETRY
There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION VARJO.INTERNALS:V-ARRAY-TYPE-OF (1)>
when called with arguments
  (NIL 2 #<FLOW-ID 6>).
See also:
  The ANSI Standard, Section 7.6.6

Stages: TESSELLATION-CONTROL TESSELLATION-EVALUATION COMPUTE
There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION VARJO.INTERNALS:V-ARRAY-TYPE-OF (1)>
when called with arguments
  (NIL 2 #<FLOW-ID 5>).
See also:
  The ANSI Standard, Section 7.6.6

Stages: FRAGMENT
There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION VARJO.INTERNALS:V-ARRAY-TYPE-OF (1)>
when called with arguments
  (NIL 2 #<FLOW-ID 7>).
See also:
  The ANSI Standard, Section 7.6.6
   [Condition of type VARJO-CONDITIONS:TEST-TRANSLATE-FAILED]