コード例 #1
0
	void GfxGraphicsCommandList::ResourceBarrier(
		GfxTexture& texture,
		GfxResourceStates before,
		GfxResourceStates after,
		GfxResourceBarrierFlag flag)
	{
		m_base->ResourceBarrier(
			texture.GetBaseTexture()->GetNativeResource(),
			before,
			after,
			flag);
	}
コード例 #2
0
	int GfxGraphicsCommandList::UploadTexture(
		GfxDevice& device,
		GfxTexture& targetTexture,
		const void* srcBuffer,
		size_t srcBufferSize,
		GfxResourceState before,
		GfxResourceState after)
	{
		return m_base->UploadTexture(
			*device.GetBaseDevice(),
			*targetTexture.GetBaseTexture(),
			srcBuffer,
			srcBufferSize,
			before,
			after);
	}