Last active
January 14, 2016 01:11
-
-
Save ryanbartley/3b495cac22f8070c0ca8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ocl::printSupportedImageFormats( mClContext, CL_MEM_OBJECT_IMAGE2D ); | |
auto imageSource = loadImage( loadAsset( "sunset.jpg" ) ); | |
mClImage = ocl::createImage2D( imageSource, mClContext ); | |
mClBuffer = ocl::createBuffer( imageSource, mClContext ); | |
auto source = ocl::createSource( mClImage ); | |
mGlTexture = gl::Texture2d::create( source ); | |
writeImage( getAppPath(), source, ImageTarget::Options(), "png" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment