Skip to content

Add optional field Fill and Size for buffer stage #274

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ArberSephirotheca
Copy link

@ArberSephirotheca ArberSephirotheca commented Jun 30, 2025

This PR add optional field Fill and Size for buffer stage in the pipeline.
Fill specifies the value to use, and Size determines the number of entries. Together they initialize the buffer with repeated Fill values.

The common use case is when you want to create a larger buffer that fill with a known value

  - Name: Buffer
    Format: UInt32
    Stride: 4
    Fill: 1
    Size: 1234578

This creates a UInt32 buffer with 1234578 entries and filled with 1s.

Fill specifies the value to use, and Size determines the number of entries.
Together they initialize the buffer with repeated Fill values.
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

Successfully merging this pull request may close these issues.

1 participant