[Bf-blender-cvs] [c737e0a] soc-2016-cycles_images: Add basic code for bindless textures.

Thomas Dinges noreply at git.blender.org
Sun May 15 19:05:43 CEST 2016


Commit: c737e0a15e2a6961ce6b2501e8eec10bd50f5685
Author: Thomas Dinges
Date:   Sun May 15 19:04:50 2016 +0200
Branches: soc-2016-cycles_images
https://developer.blender.org/rBc737e0a15e2a6961ce6b2501e8eec10bd50f5685

Add basic code for bindless textures.

This is just the basic declaration, we need to fill these structs properly still.

===================================================================

M	intern/cycles/device/device_cuda.cpp

===================================================================

diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 3f64afa..868404d 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -510,7 +510,13 @@ public:
 
 			/* Texture Storage */
 			else {
-				; /* TODO(dingto): Implement Bindless textures */
+				/* TODO(dingto): Complete Bindless textures */
+				CUDA_RESOURCE_DESC resDesc;
+
+				CUDA_TEXTURE_DESC texDesc;
+
+				CUtexObject* tex;
+				cuda_assert(cuTexObjectCreate(tex, &resDesc, &texDesc, NULL));
 			}
 		}
 		/* Geforce 4xx and 5xx */




More information about the Bf-blender-cvs mailing list