PDA

View Full Version : clCreateBuffer



IRWolfie-
05-09-2011, 03:17 AM
Can a buffer created without using a host pointer be guaranteed to be zeroed or must I zero it?

edit: wasn't paying attention, this should be in "Developers Coding:Beginner"

david.garcia
05-09-2011, 05:30 AM
Can a buffer created without using a host pointer be guaranteed to be zeroed or must I zero it?

It's not guaranteed to be zeroed. The contents of the buffer are undefined at creation.