summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-08-06 17:14:27 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-08-06 17:14:27 -0400
commitc513792d394a180ca9deada60b4d5091fc478f4f (patch)
tree9b51246e50372c07ea60ef4d8698a9e09001ac8c
parent9b48f7b3b2ffea69cd65c769d63f9118ec15dddc (diff)
graphics: buffer: Remove max, min, sparse fields from <buffer-view>.
Just a dumb thing I added when I was first trying to add glTF support and didn't really know what I wsas doing.
-rw-r--r--chickadee/graphics/buffer.scm10
1 files changed, 2 insertions, 8 deletions
diff --git a/chickadee/graphics/buffer.scm b/chickadee/graphics/buffer.scm
index 89ee376..42b6286 100644
--- a/chickadee/graphics/buffer.scm
+++ b/chickadee/graphics/buffer.scm
@@ -381,7 +381,7 @@ resized."
(define-record-type <buffer-view>
(%make-buffer-view name buffer offset offset-pointer component-type
- normalized? length type max min sparse divisor)
+ normalized? length type divisor)
buffer-view?
(name buffer-view-name)
(buffer buffer-view->buffer)
@@ -391,9 +391,6 @@ resized."
(normalized? buffer-view-normalized?)
(length buffer-view-length)
(type buffer-view-type)
- (max buffer-view-max)
- (min buffer-view-min)
- (sparse buffer-view-sparse)
(divisor buffer-view-divisor)) ; for instanced rendering
(define (buffer-view-stride buffer-view)
@@ -419,9 +416,6 @@ resized."
offset
type
component-type))
- max
- min
- sparse
(divisor 0))
"Return a new typed buffer view for BUFFER starting at byte index
OFFSET of LENGTH elements, where each element is of TYPE and composed
@@ -456,7 +450,7 @@ each element is used for 1 instance. A divisor of 2 means that each
element is used for 2 instances, and so on."
(let ((offset-ptr (make-pointer offset)))
(%make-buffer-view name buffer offset offset-ptr component-type
- normalized? length type max min sparse divisor)))
+ normalized? length type divisor)))
(define (display-buffer-view buffer-view port)
(format port "#<buffer-view name: ~s buffer: ~a type: ~s component-type: ~s length: ~d offset: ~d divisor: ~d>"