Inheritance: ShaderResource
コード例 #1
0
ファイル: GraphicsDevice.cs プロジェクト: ttou73/IronStar
        /// <summary>
        ///
        /// </summary>
        /// <param name="register"></param>
        /// <param name="volumeTexture"></param>
        public void SetCSRWTexture(int register, VolumeRWTexture volumeTexture)
        {
            if (register > 8)
            {
                throw new GraphicsException("Could not bind RW texture at register " + register.ToString() + " (max 8)");
            }

            lock (deviceContext) {
                DeviceContext.ComputeShader.SetUnorderedAccessView(register, volumeTexture == null?null:volumeTexture.UAV, -1);
            }
        }
コード例 #2
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="register"></param>
		/// <param name="volumeTexture"></param>
		public void SetCSRWTexture ( int register, VolumeRWTexture volumeTexture )
		{
			if (register>8) {
				throw new GraphicsException("Could not bind RW texture at register " + register.ToString() + " (max 8)");
			}

			lock (deviceContext) {
				DeviceContext.ComputeShader.SetUnorderedAccessView ( register, volumeTexture==null?null:volumeTexture.UAV, -1 ); 
			}
		}