Skip to content

Create a texture: Stride is too small. #170

Discussion options

You must be logged in to vote

What stride size is expected by Diligent:

width * 4

Yes, you are creating a four-channel RGBA texture, so Diligent expects 4-channel input data. There are no 3-channel textures in graphics APIs.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@FlightBlaze
Comment options

Answer selected by TheMostDiligent
Comment options

You must be logged in to vote
0 replies
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