Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_context.hh
| Show First 20 Lines • Show All 708 Lines • ▼ Show 20 Lines | public: | ||||
| /* Context Global-State Texture Binding. */ | /* Context Global-State Texture Binding. */ | ||||
| void texture_bind(gpu::MTLTexture *mtl_texture, uint texture_unit); | void texture_bind(gpu::MTLTexture *mtl_texture, uint texture_unit); | ||||
| void sampler_bind(MTLSamplerState, uint sampler_unit); | void sampler_bind(MTLSamplerState, uint sampler_unit); | ||||
| void texture_unbind(gpu::MTLTexture *mtl_texture); | void texture_unbind(gpu::MTLTexture *mtl_texture); | ||||
| void texture_unbind_all(); | void texture_unbind_all(); | ||||
| id<MTLSamplerState> get_sampler_from_state(MTLSamplerState state); | id<MTLSamplerState> get_sampler_from_state(MTLSamplerState state); | ||||
| id<MTLSamplerState> generate_sampler_from_state(MTLSamplerState state); | id<MTLSamplerState> generate_sampler_from_state(MTLSamplerState state); | ||||
| id<MTLSamplerState> generate_icon_sampler(); | |||||
| id<MTLSamplerState> get_default_sampler_state(); | id<MTLSamplerState> get_default_sampler_state(); | ||||
| /* Metal Context pipeline state. */ | /* Metal Context pipeline state. */ | ||||
| void pipeline_state_init(); | void pipeline_state_init(); | ||||
| MTLShader *get_active_shader(); | MTLShader *get_active_shader(); | ||||
| /* These functions ensure that the current RenderCommandEncoder has | /* These functions ensure that the current RenderCommandEncoder has | ||||
| * the correct global state assigned. This should be called prior | * the correct global state assigned. This should be called prior | ||||
| ▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines | |||||