Skip to content
Discussion options

You must be logged in to vote

I don't understand what &[&T] should do, in terms of function entry point signature. Like what are you trying to express, in plain English?

Here's some valid entry point args:

  • &T / TypedBuffer<T>: a buffer descriptor pointing to (a single T)
  • &[T] / TypedBuffer<[T]>: a buffer descriptor pointing to (many Ts)
  • &RuntimeArray<TypedBuffer<T>> an array of (buffer descriptors pointing to (a single T)), using descriptor_indexing
  • &RuntimeArray<TypedBuffer<[T]>> an array of (buffer descriptors pointing to (many Ts)), using descriptor_indexing

(RuntimeArray should really be named DescriptorArray IMO)

Or do you actually want "a buffer device address (BDA) pointer pointing to many (BDA pointers point…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@codecnotsupported
Comment options

@Firestar99
Comment options

@codecnotsupported
Comment options

@Firestar99
Comment options

Answer selected by codecnotsupported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants