示例#1
0
 /// <summary>
 /// Creates a new ResourceReference.
 /// </summary>
 /// <param name="device">The graphics device.</param>
 /// <param name="resource">The resource.</param>
 public ResourceReference(Device device, Resource resource)
 {
     ResourceView = new ShaderResourceView(device, resource);
     Resource = resource;
 }